Fix error when duplicating child note in a collection
This commit is contained in:
parent
45e761449f
commit
46daa1db57
1 changed files with 2 additions and 2 deletions
|
@ -1130,10 +1130,10 @@ var ZoteroPane = new function()
|
|||
item.clone(false, newItem);
|
||||
newItem.save();
|
||||
|
||||
if (this.itemsView._itemGroup.isCollection()) {
|
||||
if (this.itemsView._itemGroup.isCollection() && !newItem.getSource()) {
|
||||
this.itemsView._itemGroup.ref.addItem(newItem.id);
|
||||
this.selectItem(newItem.id);
|
||||
}
|
||||
this.selectItem(newItem.id);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue