From 65a024e980c9ab1b13acf996fc6910ca971ee5f1 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 14 Feb 2012 14:05:30 -0500 Subject: [PATCH] Revert "Revert "Potentially fix an issue with LibreOffice when setting a field code for a citation that hasn't changed"" This reverts commit aa6a85051aee4a8995e5f00685e46b4e1fa6ca04. Changed my mind... --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 23e713d023..b4d4c7d060 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1477,9 +1477,9 @@ Zotero.Integration.Fields.prototype._updateDocument = function(forceCitations, f // If there is no citation, we're deleting it, or we shouldn't update it, ignore it if(!citation || deleteCitations[i]) continue; + var isRich = false; if(!citation.properties.dontUpdate) { - var isRich = false; var formattedCitation = citation.properties.custom ? citation.properties.custom : this._session.citationText[i];