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:
parent
675af801f7
commit
8763190328
1 changed files with 1 additions and 1 deletions
|
@ -770,7 +770,7 @@ Zotero.Retractions = {
|
||||||
for (let row of rows) {
|
for (let row of rows) {
|
||||||
// DOI field
|
// DOI field
|
||||||
if (row.fieldID == doiFieldID) {
|
if (row.fieldID == doiFieldID) {
|
||||||
let value = Zotero.Utilities.cleanDOI(row.value);
|
let value = Zotero.Utilities.cleanDOI(row.value + '');
|
||||||
if (value) {
|
if (value) {
|
||||||
this._addItemKeyMapping(this.TYPE_DOI, value, row.id);
|
this._addItemKeyMapping(this.TYPE_DOI, value, row.id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue