Fix "cleanDOI: argument must be a string" startup error

Due to 0 integer value for DOI from somewhere (a plugin?)

https://forums.zotero.org/discussion/comment/402388/#Comment_402388
https://forums.zotero.org/discussion/comment/402391/#Comment_402391
This commit is contained in:
Dan Stillman 2022-03-21 22:01:55 -04:00
parent 675af801f7
commit 8763190328

View file

@ -770,7 +770,7 @@ Zotero.Retractions = {
for (let row of rows) {
// DOI field
if (row.fieldID == doiFieldID) {
let value = Zotero.Utilities.cleanDOI(row.value);
let value = Zotero.Utilities.cleanDOI(row.value + '');
if (value) {
this._addItemKeyMapping(this.TYPE_DOI, value, row.id);
}