mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
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…
Add table
Reference in a new issue