www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4e977f91ccef4235790151cc9defcfc7eec7cf33
parent b600885d11a2cfe3ea25093552ef1cb7fdde1685
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Tue, 27 Mar 2018 12:43:55 +0300

Ensure citation fields are properly initialized (regression 3445519)

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -763,6 +763,9 @@ Zotero.Integration.Fields.prototype.addField = function(note) { if (!field) { field = this._doc.insertField(this._session.data.prefs['fieldType'], (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 // So we append this field to that list