Fix field type changes triggering citation modified prompts
This commit is contained in:
parent
09ceaa953b
commit
4add3ec44c
1 changed files with 2 additions and 4 deletions
|
@ -1001,11 +1001,9 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati
|
||||||
// If we're not specifically *not* trying to regen text
|
// If we're not specifically *not* trying to regen text
|
||||||
if (forceCitations != FORCE_CITATIONS_FALSE
|
if (forceCitations != FORCE_CITATIONS_FALSE
|
||||||
// Or metadata has changed thus changing the formatted citation
|
// Or metadata has changed thus changing the formatted citation
|
||||||
|| (citation.properties.formattedCitation !== formattedCitation)
|
|| (citation.properties.formattedCitation !== formattedCitation)) {
|
||||||
// Or we shouldn't ignore citation changes and the citation text has changed
|
|
||||||
|| (!ignoreCitationChanges && plainCitation !== citation.properties.plainCitation)) {
|
|
||||||
|
|
||||||
if (plainCitation !== citation.properties.plainCitation) {
|
if (!ignoreCitationChanges && plainCitation !== citation.properties.plainCitation) {
|
||||||
// Citation manually modified; ask user if they want to save changes
|
// Citation manually modified; ask user if they want to save changes
|
||||||
Zotero.debug("[_updateDocument] Attempting to update manually modified citation.\n"
|
Zotero.debug("[_updateDocument] Attempting to update manually modified citation.\n"
|
||||||
+ "Original: " + citation.properties.plainCitation + "\n"
|
+ "Original: " + citation.properties.plainCitation + "\n"
|
||||||
|
|
Loading…
Reference in a new issue