Fix error when duplicating child note in a collection

This commit is contained in:
Dan Stillman 2009-09-01 09:07:56 +00:00
parent 45e761449f
commit 46daa1db57

View file

@ -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);
}