commit 954c2f6de0670bb10ca3f55d08ce81a262bb9a56 parent b1be39f319100a7a9e6262b6aacc11ae1e449be2 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 17 Mar 2012 03:12:49 -0400 Fix for manual new item not going into collection Broken by 0d34e34a (since 3.0.3) Diffstat:
| M | chrome/content/zotero/zoteroPane.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -662,10 +662,10 @@ var ZoteroPane = new function() return false; } - // Make sure currently selected view is editable - if (row === undefined && this.collectionsView.selection) { + if ((row === undefined || row === null) && this.collectionsView.selection) { row = this.collectionsView.selection.currentIndex; + // Make sure currently selected view is editable if (!this.canEdit(row)) { this.displayCannotEditLibraryMessage(); return;