Don't update Extra field if missing in fromJSON()
Harmless regression from recent changes
This commit is contained in:
parent
d389a71280
commit
6e38c36804
1 changed files with 3 additions and 1 deletions
|
@ -4423,7 +4423,9 @@ Zotero.Item.prototype.fromJSON = function (json, options = {}) {
|
|||
}
|
||||
}
|
||||
|
||||
this.setField('extra', Zotero.Utilities.Internal.combineExtraFields(extra, extraFields));
|
||||
if (extra || extraFields.size || this.getField('extra')) {
|
||||
this.setField('extra', Zotero.Utilities.Internal.combineExtraFields(extra, extraFields));
|
||||
}
|
||||
|
||||
if (json.collections || this._collections.length) {
|
||||
this.setCollections(json.collections);
|
||||
|
|
Loading…
Add table
Reference in a new issue