Fix adding formatted custom citations in OpenOffice.org

This commit is contained in:
Simon Kornblith 2011-08-25 21:55:26 +00:00
parent 84486e24ac
commit d9c30ebc59

View file

@ -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);
}
}
}