commit d9c30ebc59f1df758c3014c425023a3cf0e7383a
parent 84486e24ac41e4df246ab718734e08e03d436985
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 25 Aug 2011 21:55:26 +0000
Fix adding formatted custom citations in OpenOffice.org
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -865,8 +865,7 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
&& !citation.properties.dontUpdate) {
// For ReferenceMarks with formatting, we need to set the text again, because
// setting the field code removes formatting from the mark. I don't like this.
- field.setText(citation.properties.custom ? citation.properties.custom
- : citation.properties.formattedCitation, isRich);
+ field.setText(formattedCitation, isRich);
}
}
}