diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 6ed5e21e4..35ad757b6 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -1834,8 +1834,7 @@ Zotero.Item.prototype.isTopLevelItem = function () { Zotero.Item.prototype.numChildren = function(includeTrashed) { - this._requireData('childItems'); - return this._notes.rows.length + this._attachments.rows.length; + return this.numNotes(includeTrashed) + this.numAttachments(includeTrashed); }