Fix child item duplication (UI-only) when dragging between parents
This commit is contained in:
parent
61fa874572
commit
331a7cef7e
|
@ -1939,7 +1939,7 @@ Zotero.Item.prototype.save = function() {
|
||||||
Zotero.Notifier.trigger('modify', 'item', newSourceItem.id, newSourceItemNotifierData);
|
Zotero.Notifier.trigger('modify', 'item', newSourceItem.id, newSourceItemNotifierData);
|
||||||
}
|
}
|
||||||
|
|
||||||
var oldSourceItemKey = this._previousData.parent;
|
var oldSourceItemKey = this._previousData.parentItem;
|
||||||
if (oldSourceItemKey) {
|
if (oldSourceItemKey) {
|
||||||
var oldSourceItem = Zotero.Items.getByLibraryAndKey(this.libraryID, oldSourceItemKey);
|
var oldSourceItem = Zotero.Items.getByLibraryAndKey(this.libraryID, oldSourceItemKey);
|
||||||
if (oldSourceItem) {
|
if (oldSourceItem) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user