From 25d8898ab0421bb765b6a7e8ca961d5653ed8847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 14 Mar 2018 15:27:10 +0200 Subject: [PATCH] Ensure that document refresh doesn't perform needless text writes --- 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 43a6cf9929..26526940db 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1007,8 +1007,8 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati var plainCitation = citation.properties.plainCitation && citationField.getText(); // Update citation text: - // If we're not specifically *not* trying to regen text - if (forceCitations != FORCE_CITATIONS_FALSE + // 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)) {