commit 06d93e4d61d5d86728fc0237f4812b1fceae891b parent c63b244d56b3d69a25e8783ad0ddde052de510c8 Author: Simon Kornblith <simon@simonster.com> Date: Tue, 29 Mar 2011 04:38:20 +0000 don't leave {Citation}s hanging if somehow they end up the document Diffstat:
| M | chrome/content/zotero/xpcom/integration.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -916,7 +916,7 @@ Zotero.Integration.Document.prototype._updateSession = function(newField, editFi bibliographyData = fieldCode.substr(BIBLIOGRAPHY_CODE.length+1); } } else if(fieldCode == "TEMP") { - if(newField) { + if(newField && newField.equals(field)) { editFieldIndex = i; editField = field; } else { @@ -1082,7 +1082,7 @@ Zotero.Integration.Document.prototype.addCitation = function() { if(!field) return; field.setCode("TEMP"); - this._updateSession(true); + this._updateSession(field); this._updateDocument(); }