Allow bypassing library edit check when saving data objects
Pass {skipEditCheck: true} option to .save()
This commit is contained in:
parent
efdc6f1230
commit
f0aae549c5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user