Fix saving to group libraries
This commit is contained in:
parent
b1275032f5
commit
0a33f1fde7
|
@ -1910,16 +1910,7 @@ var ZoteroPane = new function()
|
||||||
|
|
||||||
this.getSelectedLibraryID = function () {
|
this.getSelectedLibraryID = function () {
|
||||||
var itemGroup = this.getItemGroup();
|
var itemGroup = this.getItemGroup();
|
||||||
var groupID = this.getSelectedGroup(true);
|
return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null;
|
||||||
if (groupID) {
|
|
||||||
return groupID;
|
|
||||||
}
|
|
||||||
else if (itemGroup.isWithinGroup()) {
|
|
||||||
return itemGroup.ref.libraryID;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user