From 1f9580b94a8c67033fc9d60a60458f3e0bbf801b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 9 Nov 2007 19:37:42 +0000 Subject: [PATCH] Fix error calling Zotero.Items.getAll() without true as first argument --- chrome/content/zotero/xpcom/data_access.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index 879d9d64b..83d9d8d35 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -2675,9 +2675,9 @@ Zotero.Items = new function(){ * If |onlyTopLevel|, don't include child items */ function getAll(onlyTopLevel) { - var sql = 'SELECT A.itemID FROM items'; + var sql = 'SELECT A.itemID FROM items A'; if (onlyTopLevel) { - sql += ' A LEFT JOIN itemNotes B USING (itemID) ' + sql += ' LEFT JOIN itemNotes B USING (itemID) ' + 'LEFT JOIN itemAttachments C ON (C.itemID=A.itemID) ' + 'WHERE B.sourceItemID IS NULL AND C.sourceItemID IS NULL'; }