From 079cb258f44504acd7f335f700d9e5d245a52586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 6 Mar 2018 11:46:33 +0200 Subject: [PATCH] Fix unloaded citation items being serialized with string IDs --- chrome/content/zotero/xpcom/integration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 9ab5a1e21..97e90bc1f 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1474,6 +1474,8 @@ Zotero.Integration._oldCitationLocatorMap = { */ Zotero.Integration.Session.prototype.addCitation = Zotero.Promise.coroutine(function* (index, noteIndex, citation) { var index = parseInt(index, 10); + + yield citation.loadItemData(); citation.properties.added = true; citation.properties.zoteroIndex = index;