Added text control to avoid show more of 255 chars in his field

This commit is contained in:
Jose Gonzalez 2019-07-29 08:59:56 +02:00
parent 4d9d0deab7
commit 243c298ff8

View File

@ -278,7 +278,12 @@ if (is_ajax()) {
$events,
function ($carry, $item) {
$tmp = (object) $item;
$tmp->evento = io_safe_output($tmp->evento);
if (strlen($tmp->evento) >= 255) {
$tmp->evento = io_safe_output(substr($tmp->evento, 0, 253).'...)');
} else {
$tmp->evento = io_safe_output($tmp->evento);
}
if ($tmp->module_name) {
$tmp->module_name = io_safe_output($tmp->module_name);
}