From 7f8c28bb98fea12082dd9b21331ea15064a726ad Mon Sep 17 00:00:00 2001 From: Henri Queneau <henri.queneau@maarch.org> Date: Wed, 29 Mar 2017 17:06:10 +0200 Subject: [PATCH] FEAT #5354 the number of entityIds showed is limited at 3 if there is lot of entities in notes --- modules/notes/notes.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/notes/notes.php b/modules/notes/notes.php index c93db06fbe6..685fc1f2f0b 100644 --- a/modules/notes/notes.php +++ b/modules/notes/notes.php @@ -261,7 +261,12 @@ if (isset($_REQUEST['load'])) { if (!empty($tabEntityLabel)) { $allEntities = implode(' - ', $tabEntityLabel); - $allEntitiesId = implode('<br/>', $tabEntityId); + if(count($tabEntityId) > 3){ + $allEntitiesId = $tabEntityId[0] .'<br/>'.$tabEntityId[1].'<br/>'.$tabEntityId[2].'<br/>...'; + }else{ + $allEntitiesId = implode('<br/>', $tabEntityId); + } + } -- GitLab