Improve event names

This commit is contained in:
José González 2022-06-09 11:02:11 +02:00
parent 8a5847a225
commit bce182f2b2
2 changed files with 4 additions and 6 deletions

View File

@ -116,6 +116,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