www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1621f5772b4a01fe52e50008d082a14242e1cdb1
parent 07ca00edd538bc6e3111ba5d83349cfe47d632fb
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Tue,  2 Jun 2015 18:28:46 -0500

Fix deleting collection with items

Diffstat:
Mchrome/content/zotero/xpcom/data/collection.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js @@ -583,8 +583,6 @@ Zotero.Collection.prototype.clone = function (includePrimary, newCollection) { Zotero.Collection.prototype._eraseData = Zotero.Promise.coroutine(function* (env) { Zotero.DB.requireTransaction(); - var includeItems = env.options.deleteItems; - var collections = [this.id]; var descendents = yield this.getDescendents(false, null, true); @@ -606,7 +604,7 @@ Zotero.Collection.prototype._eraseData = Zotero.Promise.coroutine(function* (env // Descendent items else { // Delete items from DB - if (deleteItems) { + if (env.options.deleteItems) { del.push(descendents[i].id); } }