commit 46daa1db5750e6c7865a7fa9d5b04aa2904c99b0 parent 45e761449fd0832628766f800d0955c4245b15c3 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 1 Sep 2009 09:07:56 +0000 Fix error when duplicating child note in a collection Diffstat:
| M | chrome/content/zotero/overlay.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js @@ -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); }