Fix error from letter items with more than 10 recipients

https://forums.zotero.org/discussion/40218/
This commit is contained in:
Dan Stillman 2014-09-19 20:37:59 -04:00
parent ce6cba7974
commit 10ba5e31d6

View File

@ -908,9 +908,9 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) {
} }
if (participants.length > 0) { if (participants.length > 0) {
var names = []; let names = [];
for each(participant in participants) { for (let i=0; i<4; i++) {
names.push(participant.ref.lastName); names.push(participants[i].ref.lastName);
} }
switch (names.length) { switch (names.length) {
case 1: case 1: