From acd6d38a1eadbee377ffe56f3914c290247d550b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 7 Mar 2013 19:46:37 -0500 Subject: [PATCH] Don't break when DOI is not a string --- chrome/content/zotero/xpcom/duplicates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/duplicates.js b/chrome/content/zotero/xpcom/duplicates.js index 8836f830b0..245f0939cb 100644 --- a/chrome/content/zotero/xpcom/duplicates.js +++ b/chrome/content/zotero/xpcom/duplicates.js @@ -209,7 +209,7 @@ Zotero.Duplicates.prototype._findDuplicates = function () { var doiCache = {}; if (rows) { for each(var row in rows) { - doiCache[row.itemID] = row.value.trim(); + doiCache[row.itemID] = row.value.toString().trim(); } } processRows();