mirror of https://github.com/MISP/MISP
Merge branch 'hotfix-2.1.27'
commit
5811b5109c
|
@ -7,8 +7,8 @@ App::uses('AppHelper', 'View/Helper');
|
|||
$data = null;
|
||||
$text = $pivot['id'] . ': ';
|
||||
$active = '';
|
||||
// Truncate string if longer than 10 chars to fit the pivot bubble
|
||||
if (strlen($pivot['info']) > 10) {
|
||||
// Truncate string if longer than (11 - length of event id) chars to fit the pivot bubble
|
||||
if (strlen($pivot['info']) > (11 - strlen((string)$pivot['id']))) {
|
||||
$text .= substr($pivot['info'], 0, 7) . '...';
|
||||
} else {
|
||||
$text .= $pivot['info'];
|
||||
|
|
Loading…
Reference in New Issue