From 11990596125339875c46277deca8f10b1153378f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 8 Aug 2019 11:25:11 +0300 Subject: [PATCH] Fix imported citations with modified text not resetting the text --- chrome/content/zotero/xpcom/integration.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 7e4713cbf9..642c8ce538 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1713,6 +1713,10 @@ Zotero.Integration.Session.prototype.importDocument = async function() { await this.setData(data, true); await this.fields.get(true); await this.fields.updateSession(FORCE_CITATIONS_RESET_TEXT); + // Make sure we ignore the dont update flags since we do not know what the original text was + for (let index in this.citationsByIndex) { + delete this.citationsByIndex[index].properties.dontUpdate; + } await this.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true); } finally { Zotero.debug(`Integration: Import finished in ${timer.stop()}`);