From b2f78c11d885952e995a171ffea8be21e5612aa0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 28 Apr 2007 16:12:47 +0000 Subject: [PATCH] Fix report generation via collection context menu --- components/zotero-protocol-handler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index b27410850..9525431fa 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -102,7 +102,7 @@ function ChromeExtensionHandler() { switch (type){ case 'collection': - var items = Zotero.getItems(ids); + var results = Zotero.getItems(ids); break; case 'search': @@ -122,7 +122,9 @@ function ChromeExtensionHandler() { var ids = s.search(); } - var results = Zotero.Items.get(ids); + if (!results) { + var results = Zotero.Items.get(ids); + } var items = []; // Only include parent items for (var i=0; i