diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index c210e4aed..ea27181a2 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -369,6 +369,7 @@ Zotero.Collection.prototype.addItem = function (itemID, options) { /** * Add multiple items to the collection in batch * + * Requires a transaction * Does not require a separate save() * * @param {Number[]} itemIDs @@ -403,6 +404,7 @@ Zotero.Collection.prototype.addItems = Zotero.Promise.coroutine(function* (itemI /** * Remove a item from the collection. The item is not deleted from the library. * + * Requires a transaction * Does not require a separate save() * * @return {Promise} @@ -425,22 +427,21 @@ Zotero.Collection.prototype.removeItems = Zotero.Promise.coroutine(function* (it var current = this.getChildItems(true); - return Zotero.DB.executeTransaction(function* () { - for (let i=0; i