Fix operations that remove field codes

This commit is contained in:
Simon Kornblith 2012-07-16 21:56:31 -04:00
parent d550ac92b4
commit 06a7b1438f

View File

@ -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();
}
}