Merge branch 'ent-9032-Mejora-visual-eventos-largos-destrozan' into 'develop'

Improve event names

See merge request artica/pandorafms!4951
This commit is contained in:
Daniel Rodriguez 2022-06-16 06:41:07 +00:00
commit ffdc8ee656
2 changed files with 4 additions and 6 deletions

View File

@ -115,6 +115,7 @@ table.dataTable tbody td {
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
border-bottom: 2px solid #dedede; border-bottom: 2px solid #dedede;
word-break: break-all;
} }
.filter_input { .filter_input {

View File

@ -375,20 +375,17 @@ if (is_ajax() === true) {
} }
$tmp->evento = str_replace('"', '', io_safe_output($tmp->evento)); $tmp->evento = str_replace('"', '', io_safe_output($tmp->evento));
if (strlen($tmp->evento) >= 255) {
$tmp->evento = ui_print_truncate_text($tmp->evento, 255, $tmp->evento, true, false);
}
if ($tmp->module_name) { if (empty($tmp->module_name) === false) {
$tmp->module_name = io_safe_output($tmp->module_name); $tmp->module_name = io_safe_output($tmp->module_name);
} }
if ($tmp->comments) { if (empty($tmp->comments) === false) {
$tmp->comments = ui_print_comments($tmp->comments); $tmp->comments = ui_print_comments($tmp->comments);
} }
// Show last event. // Show last event.
if (isset($tmp->max_id_evento) && $tmp->max_id_evento !== $tmp->id_evento) { if (isset($tmp->max_id_evento) === true && $tmp->max_id_evento !== $tmp->id_evento) {
$max_event = db_get_row_sql( $max_event = db_get_row_sql(
sprintf( sprintf(
'SELECT criticity, timestamp FROM %s 'SELECT criticity, timestamp FROM %s