From aa783878dee10ebb9f0649593ac52354d51947c7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 15 Jan 2017 16:47:01 -0500 Subject: [PATCH] Fix error refreshing document with item replaced by merge --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index a44db382f1..dc16a6ad9a 100644 --- 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;