From 01ecff8e2b248f446e35c1c20f15bfcbf8fac610 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 30 Aug 2017 18:46:40 -0400 Subject: [PATCH] Fix regression in 05d74c4cac --- 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 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); }