From cb707a55c8f8abc7d5cc9dd6cc23eba21bbb0308 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 20 Sep 2014 16:33:53 -0400 Subject: [PATCH] Fix breakage from 10ba5e31d --- chrome/content/zotero/xpcom/data/item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 3eaeca9879..8dae499502 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -910,7 +910,8 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) { if (participants.length > 0) { let names = []; - for (let i=0; i<4; i++) { + let max = Math.min(4, participants.length); + for (let i=0; i