From c1a9735081de36356ea293702988f16eb5b096f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Sun, 1 Jul 2018 14:23:40 +0300 Subject: [PATCH] Fix citations updating even after user asks for them not to be updated --- chrome/content/zotero/xpcom/integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 36b5e2f384..00f969809d 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1039,9 +1039,9 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati // If we're looking to reset the text even if it matches previous text if (forceCitations == FORCE_CITATIONS_RESET_TEXT // Or metadata has changed thus changing the formatted citation - || (citation.properties.formattedCitation !== formattedCitation) + || ((citation.properties.formattedCitation !== formattedCitation // Or plaintext has changed and user does not want to keep the change - || (plaintextChanged && !citation.properties.dontUpdate)) { + || plaintextChanged) && !citation.properties.dontUpdate)) { // Word will preserve previous text styling, so we need to force remove it