www

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

commit 4add3ec44c8c7b3868cb8ed2585d4de2e8be31cf
parent 09ceaa953bcfc3d9aef829ae360c95d2b668c083
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Tue,  6 Feb 2018 15:19:08 +0200

Fix field type changes triggering citation modified prompts

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1001,11 +1001,9 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati // If we're not specifically *not* trying to regen text if (forceCitations != FORCE_CITATIONS_FALSE // Or metadata has changed thus changing the formatted citation - || (citation.properties.formattedCitation !== formattedCitation) - // Or we shouldn't ignore citation changes and the citation text has changed - || (!ignoreCitationChanges && plainCitation !== citation.properties.plainCitation)) { + || (citation.properties.formattedCitation !== formattedCitation)) { - if (plainCitation !== citation.properties.plainCitation) { + if (!ignoreCitationChanges && plainCitation !== citation.properties.plainCitation) { // Citation manually modified; ask user if they want to save changes Zotero.debug("[_updateDocument] Attempting to update manually modified citation.\n" + "Original: " + citation.properties.plainCitation + "\n"