Fix numbers in strings addition caused bug in providing citeproc citation data

This commit is contained in:
Adomas Venčkauskas 2019-04-10 10:35:30 +03:00
parent 1ca6898cb9
commit a57d38aa29

View file

@ -1660,7 +1660,7 @@ Zotero.Integration.Session.prototype.getCiteprocLists = function() {
continue; continue;
} }
citations.push([this.citationsByIndex[idx].citationID, this.citationsByIndex[idx].properties.noteIndex]); citations.push([this.citationsByIndex[idx].citationID, this.citationsByIndex[idx].properties.noteIndex]);
fieldToCitationIdxMapping[i] = idx; fieldToCitationIdxMapping[i] = parseInt(idx);
citationToFieldIdxMapping[idx] = i++; citationToFieldIdxMapping[idx] = i++;
} }
return [citations, fieldToCitationIdxMapping, citationToFieldIdxMapping]; return [citations, fieldToCitationIdxMapping, citationToFieldIdxMapping];