mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Allow bypassing library edit check when saving data objects
Pass {skipEditCheck: true} option to .save()
This commit is contained in:
parent
efdc6f1230
commit
f0aae549c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue