diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 449c8793a4..2081cad7b5 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1668,8 +1668,8 @@ Zotero.Integration.Fields.prototype._updateDocument = function(forceCitations, f } } var removeCodeFields = Object.keys(this._removeCodeFields).sort(); - for(var i=(this._removeCodeFields.length-1); i>=0; i--) { - this._fields[this._removeCodeFields[i]].removeCode(); + for(var i=(removeCodeFields.length-1); i>=0; i--) { + this._fields[removeCodeFields[i]].removeCode(); } }