From a1865f5e189ec404784122e2570a7f13f1eb13aa Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Nov 2010 06:49:40 +0000 Subject: [PATCH] Clear previousData after item save --- chrome/content/zotero/xpcom/data/item.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 0080148f7..bd13b32b3 100644 --- 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;