Fix for manual new item not going into collection
Broken by 0d34e34a
(since 3.0.3)
This commit is contained in:
parent
b1be39f319
commit
954c2f6de0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue