From f0aae549c5b3615c3651d59ecbc9cadccf44630f Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Fri, 14 Nov 2014 04:48:47 -0600 Subject: [PATCH] Allow bypassing library edit check when saving data objects Pass {skipEditCheck: true} option to .save() --- chrome/content/zotero/xpcom/data/dataObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index 76b487777..4704e5e8c 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -563,7 +563,7 @@ Zotero.DataObject.prototype._recoverFromSaveError = Zotero.Promise.coroutine(fun Zotero.DataObject.prototype._initSave = Zotero.Promise.coroutine(function* (env) { env.isNew = !this.id; - this.editCheck(); + if (!env.options.skipEditCheck) this.editCheck(); if (!this.hasChanged()) { Zotero.debug(this._ObjectType + ' ' + this.id + ' has not changed', 4);