commit aa783878dee10ebb9f0649593ac52354d51947c7
parent 3d83f5ff7009befa6ff71ea963d4e00c5b416bdb
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 15 Jan 2017 16:47:01 -0500
Fix error refreshing document with item replaced by merge
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -3163,7 +3163,7 @@ Zotero.Integration.URIMap.prototype.getZoteroItemForURIs = function(uris) {
'item', Zotero.Relations.replacedItemPredicate, uri
);
if (replacer.length && !replacer[0].deleted) {
- zoteroItem = replacer;
+ zoteroItem = replacer[0];
}
if(zoteroItem) break;