Better logging for changes to deleted
property
This commit is contained in:
parent
8992efc869
commit
fcc6cc17a9
1 changed files with 2 additions and 2 deletions
|
@ -117,10 +117,10 @@ for (let name of ['deleted']) {
|
||||||
val = !!val;
|
val = !!val;
|
||||||
var oldVal = this._getLatestField(name);
|
var oldVal = this._getLatestField(name);
|
||||||
if (oldVal == val) {
|
if (oldVal == val) {
|
||||||
Zotero.debug(Zotero.Utilities.capitalize(name)
|
Zotero.debug(`Field '${name}' hasn't changed`);
|
||||||
+ ` state hasn't changed for ${this._objectType} ${this.id}`);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Zotero.debug(`Field '${name}' has changed from '${oldVal}' to '${val}'`, 4);
|
||||||
this._markFieldChange(name, val);
|
this._markFieldChange(name, val);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue