mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Added text control to avoid show more of 255 chars in his field
This commit is contained in:
parent
4d9d0deab7
commit
243c298ff8
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user