commit a1865f5e189ec404784122e2570a7f13f1eb13aa
parent e95a919c12aa4acd8070c3229f74126d850a1df3
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 15 Nov 2010 06:49:40 +0000
Clear previousData after item save
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js
@@ -2032,6 +2032,8 @@ Zotero.Item.prototype.save = function() {
Zotero.Notifier.trigger('modify', 'item', this.id, { old: this._previousData });
}
+ this._previousData = null;
+
if (isNew) {
var id = this.id;
this._disabled = true;