From 87631903282bc4d72cf6791b1a83a518ffdaf77e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Mar 2022 22:01:55 -0400 Subject: [PATCH] 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 --- chrome/content/zotero/xpcom/retractions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/retractions.js b/chrome/content/zotero/xpcom/retractions.js index 0f714c5219..ac7b9282c9 100644 --- a/chrome/content/zotero/xpcom/retractions.js +++ b/chrome/content/zotero/xpcom/retractions.js @@ -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); }