From fc0f541ad877f763f74a96cf13c0a41f000862db Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 10 Oct 2014 18:01:21 -0400 Subject: [PATCH] Additional debugging for saving from download overlay --- chrome/content/zotero/downloadOverlay.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/downloadOverlay.js b/chrome/content/zotero/downloadOverlay.js index 4292ec713..b4d35ecae 100644 --- a/chrome/content/zotero/downloadOverlay.js +++ b/chrome/content/zotero/downloadOverlay.js @@ -63,13 +63,18 @@ var Zotero_DownloadOverlay = new function() { .getMostRecentWindow("navigator:browser"); var libraryID, collection; try { - if(win.ZoteroPane.getItemGroup().filesEditable) { + let itemGroup = win.ZoteroPane.getItemGroup(); + if (itemGroup.filesEditable) { libraryID = win.ZoteroPane.getSelectedLibraryID(); collection = win.ZoteroPane.getSelectedCollection(); } // TODO: Just show an error instead? else { - Zotero.debug("Cannot save files to library -- saving to personal library instead"); + Zotero.debug("libraryID: " + itemGroup.ref.libraryID); + Zotero.debug("editable: " + itemGroup.ref.editable); + Zotero.debug("filesEditable: " + itemGroup.ref.filesEditable); + Zotero.debug("Cannot save files to library " + itemGroup.ref.libraryID + + " -- saving to personal library instead"); } } catch(e) { Zotero.debug(e, 1);