Allow loadChildItems() to be called on note/attachment items

Otherwise loadAllData() doesn't work
This commit is contained in:
Dan Stillman 2015-04-29 16:10:41 -04:00
parent fbef911cb7
commit 40e86147a4

View File

@ -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