diff --git a/chrome/content/zotero/xpcom/data/group.js b/chrome/content/zotero/xpcom/data/group.js index c8fd50934..9d36e5b33 100644 --- a/chrome/content/zotero/xpcom/data/group.js +++ b/chrome/content/zotero/xpcom/data/group.js @@ -295,6 +295,13 @@ Zotero.Group.prototype.erase = Zotero.Promise.coroutine(function* () { }); +Zotero.Group.prototype.eraseTx = function () { + return Zotero.DB.executeTransaction(function* () { + return this.erase(); + }.bind(this)); +} + + Zotero.Group.prototype.fromJSON = function (json, userID) { this._requireLoad();