www

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

commit ca0ad42a6ab3e33482460a7b9132269c7e405804
parent de1983bf9f5806c31d19d7411dfe73f2173fa519
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  6 Mar 2013 14:30:18 -0500

Fix Z pane brokenness with no titled items (from 53322e6e)

Diffstat:
Mchrome/content/zotero/xpcom/duplicates.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/duplicates.js b/chrome/content/zotero/xpcom/duplicates.js @@ -242,7 +242,7 @@ Zotero.Duplicates.prototype._findDuplicates = function () { + "WHERE libraryID=? AND fieldID BETWEEN 110 AND 113 " + "AND itemTypeID NOT IN (1, 14) " + "AND itemID NOT IN (SELECT itemID FROM deletedItems)"; - var rows = Zotero.DB.query(sql, [this._libraryID]); + var rows = Zotero.DB.query(sql, [this._libraryID]) || []; //normalize all values ahead of time rows = rows.map(function(row) { row.value = normalizeString(row.value);