Fix Import placing items in feeds/uneditable libraries
This commit is contained in:
parent
9cdcb2fd7c
commit
198ae65b4a
1 changed files with 7 additions and 3 deletions
|
@ -426,10 +426,14 @@ var Zotero_File_Interface = new function() {
|
|||
}
|
||||
else if (!createNewCollection) {
|
||||
try {
|
||||
if (!ZoteroPane.collectionsView.editable) {
|
||||
ZoteroPane.collectionsView.selectLibrary(null);
|
||||
let zp = Zotero.getActiveZoteroPane();
|
||||
if (!zp.canEdit()) {
|
||||
yield zp.collectionsView.selectLibrary(Zotero.Libraries.userLibraryID);
|
||||
}
|
||||
} catch(e) {}
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}
|
||||
|
||||
var defaultNewCollectionPrefix = Zotero.getString("fileInterface.imported");
|
||||
|
|
Loading…
Add table
Reference in a new issue