Ensure citation fields are properly initialized (regression 3445519
)
This commit is contained in:
parent
b600885d11
commit
4e977f91cc
|
@ -763,6 +763,9 @@ Zotero.Integration.Fields.prototype.addField = function(note) {
|
||||||
if (!field) {
|
if (!field) {
|
||||||
field = this._doc.insertField(this._session.data.prefs['fieldType'],
|
field = this._doc.insertField(this._session.data.prefs['fieldType'],
|
||||||
(note ? this._session.data.prefs["noteType"] : 0));
|
(note ? this._session.data.prefs["noteType"] : 0));
|
||||||
|
// Older doc plugins do not initialize the field code to anything meaningful
|
||||||
|
// so we ensure it here manually
|
||||||
|
field.setCode('TEMP');
|
||||||
}
|
}
|
||||||
// If fields already retrieved, further this.get() calls will returned the cached version
|
// If fields already retrieved, further this.get() calls will returned the cached version
|
||||||
// So we append this field to that list
|
// So we append this field to that list
|
||||||
|
|
Loading…
Reference in New Issue
Block a user