commit 17f2025c53085b808ea8506a30d8aada8517a097 parent 6ac65373a3bea25f901de7e447b6505fbe62cd0b Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 5 Jun 2018 08:39:17 -0400 Fix import into selected library from wizard Diffstat:
| M | chrome/content/zotero/fileInterface.js | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js @@ -463,11 +463,16 @@ var Zotero_File_Interface = new function() { return false; } - let importCollection = null, libraryID = Zotero.Libraries.userLibraryID; + var libraryID = Zotero.Libraries.userLibraryID; + var importCollection = null; try { - libraryID = ZoteroPane.getSelectedLibraryID(); - importCollection = ZoteroPane.getSelectedCollection(); - } catch(e) {} + let zp = Zotero.getActiveZoteroPane(); + libraryID = zp.getSelectedLibraryID(); + importCollection = zp.getSelectedCollection(); + } + catch (e) { + Zotero.logError(e); + } if(createNewCollection) { // Create a new collection to take imported items