From 24cca6cff3ba52828d7ff9af2243708630550592 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 Feb 2008 06:27:51 +0000 Subject: [PATCH] Titles that were entirely numeric would cause Zotero to fail on "Loading items list..." --- chrome/content/zotero/xpcom/data_access.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index 0bd7cd3c4..f3eca9ba2 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -3070,6 +3070,9 @@ Zotero.Items = new function(){ function getSortTitle(title) { + if (typeof title == 'number') { + return title + ''; + } return title.replace(/^[\[\'\"](.*)[\'\"\]]?$/, '$1') }