Fix child item duplication (UI-only) when dragging between parents

This commit is contained in:
Dan Stillman 2013-02-08 02:20:53 -05:00
parent 61fa874572
commit 331a7cef7e

View file

@ -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) {