www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 25d8898ab0421bb765b6a7e8ca961d5653ed8847
parent 92346c8fb99b57fd3ee9fab500ac38097bba1940
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Wed, 14 Mar 2018 15:27:10 +0200

Ensure that document refresh doesn't perform needless text writes

Diffstat:
Mchrome/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 @@ -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)) {