From 331a7cef7ebb17aef279f4c5a06c34b06ff8f9a6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 Feb 2013 02:20:53 -0500 Subject: [PATCH] Fix child item duplication (UI-only) when dragging between parents --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 6d38ca65d..31132572c 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -1939,7 +1939,7 @@ Zotero.Item.prototype.save = function() { Zotero.Notifier.trigger('modify', 'item', newSourceItem.id, newSourceItemNotifierData); } - var oldSourceItemKey = this._previousData.parent; + var oldSourceItemKey = this._previousData.parentItem; if (oldSourceItemKey) { var oldSourceItem = Zotero.Items.getByLibraryAndKey(this.libraryID, oldSourceItemKey); if (oldSourceItem) {