Fix for manual new item not going into collection

Broken by 0d34e34a (since 3.0.3)
This commit is contained in:
Dan Stillman 2012-03-17 03:12:49 -04:00
parent b1be39f319
commit 954c2f6de0

View file

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