From 40e86147a4aade87368b68f83c632be8c991d933 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 29 Apr 2015 16:10:41 -0400 Subject: [PATCH] Allow loadChildItems() to be called on note/attachment items Otherwise loadAllData() doesn't work --- chrome/content/zotero/xpcom/data/item.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 6519ff73f0..b2888a22f7 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4471,9 +4471,8 @@ Zotero.Item.prototype.loadChildItems = Zotero.Promise.coroutine(function* (reloa return; } - if (this.isNote() || this.isAttachment()) { - throw new Error("Can only load child items for regular item"); + return; } // Attachments