From afc7afeb9cc98a435251df62a371fdc979c391b4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 18 Sep 2017 17:03:12 -0400 Subject: [PATCH] Fix error deleting collection after emptying trash Follow-up to c442daedce Fixes #1317 --- chrome/content/zotero/xpcom/data/collection.js | 2 +- test/tests/collectionTest.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index aa3213733..c0040ad58 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -427,7 +427,7 @@ Zotero.Collection.prototype.removeItems = Zotero.Promise.coroutine(function* (it return; } - var current = this.getChildItems(true); + var current = this.getChildItems(true, true); Zotero.DB.requireTransaction(); for (let i=0; i