From 057c76e78145fcdd678a30b49fc2ee693365fd1a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 17 Jun 2008 20:34:14 +0000 Subject: [PATCH] Fix export from context menu of Saved Search It's possible this hasn't worked for a very long time --- chrome/content/zotero/fileInterface.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 289cf21e4..9deba122e 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -139,15 +139,24 @@ var Zotero_File_Interface = new function() { exporter.collection = collection; } else { // find sorted items - exporter.items = ZoteroPane.getSortedItems(); + var items = []; + var ids = ZoteroPane.getSortedItems(); + if (ids.length) { + for (var i=0; i