commit 40e86147a4aade87368b68f83c632be8c991d933 parent fbef911cb76cdc71427be645505bcd6b9675f3d8 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 29 Apr 2015 16:10:41 -0400 Allow loadChildItems() to be called on note/attachment items Otherwise loadAllData() doesn't work Diffstat:
| M | 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 @@ -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