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) {
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: