From a538386d51770a16123057b66ed38b8169c431b3 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Thu, 31 May 2012 00:41:38 -0500 Subject: [PATCH] In case title is a number, convert to string, so we can do str.replace later --- chrome/content/zotero/xpcom/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 7722b889b7..ec98767d9a 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -891,7 +891,7 @@ Zotero.Attachments = new function(){ break; default: - var value = item.getField(field, false, true); + var value = '' + item.getField(field, false, true); } var re = new RegExp("\{?([^%\{\}]*)" + rpl + "(\{[0-9]+\})?" + "([^%\{\}]*)\}?");