Allow bypassing library edit check when saving data objects

Pass {skipEditCheck: true} option to .save()
This commit is contained in:
Aurimas Vinckevicius 2014-11-14 04:48:47 -06:00
parent efdc6f1230
commit f0aae549c5

View File

@ -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);