Merge branch 'hotfix-2.1.27'

pull/195/head
iglocska 2013-10-18 11:00:05 +02:00
commit 5811b5109c
1 changed files with 2 additions and 2 deletions

View File

@ -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'];