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

This commit is contained in:
Dan Stillman 2013-03-06 14:30:18 -05:00
parent de1983bf9f
commit ca0ad42a6a

View file

@ -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);