From 4525afddc59d6638a3de31d27e7aa0364b0c83df Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 20 Jun 2008 18:27:30 +0000 Subject: [PATCH] Addresses #1047, Timeline items not displaying for collections --- chrome/content/zotero/xpcom/data/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index ada15e1cc..c79b67926 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -921,7 +921,7 @@ Zotero.Collection.prototype._loadChildItems = function() { + "(SELECT itemID FROM itemNotes WHERE sourceItemID IS NOT NULL) " + "AND itemID NOT IN " + "(SELECT itemID FROM itemAttachments WHERE sourceItemID IS NOT NULL)"; - var ids = Zotero.DB.columnQuery(sql, this._id); + var ids = Zotero.DB.columnQuery(sql, this.id); this._childItems = [];