From 0a33f1fde7a91884afa1a88f2d8b3c3bbfb6c59b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 28 Sep 2011 04:01:39 +0000 Subject: [PATCH] Fix saving to group libraries --- chrome/content/zotero/zoteroPane.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 829bad478..bec8cf757 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1910,16 +1910,7 @@ var ZoteroPane = new function() this.getSelectedLibraryID = function () { var itemGroup = this.getItemGroup(); - var groupID = this.getSelectedGroup(true); - if (groupID) { - return groupID; - } - else if (itemGroup.isWithinGroup()) { - return itemGroup.ref.libraryID; - } - else { - return null; - } + return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null; }