From e9fd7f2dd159409f39cc8fb6765c83f9dfb3cb5e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 7 Mar 2017 01:54:49 -0500 Subject: [PATCH] Update Collection::getChildItems() when erasing item Fixes #1188 --- chrome/content/zotero/xpcom/data/item.js | 2 +- test/tests/collectionTest.js | 28 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index bc56d5b44..4b07763bd 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3944,7 +3944,7 @@ Zotero.Item.prototype._eraseData = Zotero.Promise.coroutine(function* (env) { Zotero.DB.requireTransaction(); // Remove item from parent collections - var parentCollectionIDs = this.collections; + var parentCollectionIDs = this._collections; if (parentCollectionIDs) { for (var i=0; i