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) {
|
else if (!createNewCollection) {
|
||||||
try {
|
try {
|
||||||
if (!ZoteroPane.collectionsView.editable) {
|
let zp = Zotero.getActiveZoteroPane();
|
||||||
ZoteroPane.collectionsView.selectLibrary(null);
|
if (!zp.canEdit()) {
|
||||||
|
yield zp.collectionsView.selectLibrary(Zotero.Libraries.userLibraryID);
|
||||||
}
|
}
|
||||||
} catch(e) {}
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultNewCollectionPrefix = Zotero.getString("fileInterface.imported");
|
var defaultNewCollectionPrefix = Zotero.getString("fileInterface.imported");
|
||||||
|
|
Loading…
Add table
Reference in a new issue