www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit cb707a55c8f8abc7d5cc9dd6cc23eba21bbb0308
parent b0550273ae1bedba67e6d37627d0e5ea2d4b296e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 20 Sep 2014 16:33:53 -0400

Fix breakage from 10ba5e31d

Diffstat:
Mchrome/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 @@ -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<max; i++) { names.push(participants[i].ref.lastName); } switch (names.length) {