www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ffb3823b4cf40b9a4183264ea86ce8f6c93e79ac
parent 208d470531ca83b0f89dfa9ff4193f12858e6247
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 11 Mar 2016 03:08:40 -0500

Properly include creators of last item when looking for duplicates

Diffstat:
Mchrome/content/zotero/xpcom/duplicates.js | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/xpcom/duplicates.js b/chrome/content/zotero/xpcom/duplicates.js @@ -303,13 +303,13 @@ Zotero.Duplicates.prototype._findDuplicates = Zotero.Promise.coroutine(function* itemCreators = []; } } - else { - itemCreators.push({ - lastName: normalizeString(row.lastName), - firstInitial: row.fieldMode == 0 ? normalizeString(row.firstName).charAt(0) : false - }); - } + lastItemID = row.itemID; + + itemCreators.push({ + lastName: normalizeString(row.lastName), + firstInitial: row.fieldMode == 0 ? normalizeString(row.firstName).charAt(0) : false + }); } // Add final item creators if (itemCreators.length) {