From 10ba5e31d648dcdf9b07a6bfe95a7cf810a610ac Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 19 Sep 2014 20:37:59 -0400 Subject: [PATCH] Fix error from letter items with more than 10 recipients https://forums.zotero.org/discussion/40218/ --- chrome/content/zotero/xpcom/data/item.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 08a15a0c17..f24a83dcc1 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -908,9 +908,9 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) { } if (participants.length > 0) { - var names = []; - for each(participant in participants) { - names.push(participant.ref.lastName); + let names = []; + for (let i=0; i<4; i++) { + names.push(participants[i].ref.lastName); } switch (names.length) { case 1: