From 191db192c9244a7e91d56e693adbeebf6376b129 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Wed, 7 Aug 2019 14:14:14 +0200 Subject: [PATCH] Solved issue with metaconsole --- pandora_console/operation/events/events.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index bb5235b3b5..12a47f9784 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -279,8 +279,10 @@ if (is_ajax()) { function ($carry, $item) { $tmp = (object) $item; $tmp->hint = ''; + $tmp->meta = false; if (strlen($tmp->evento) >= 255) { $tmp->hint = io_safe_output(chunk_split(substr($tmp->evento, 0, 600), 80, '
').'(...)'); + $tmp->meta = is_metaconsole(); $tmp->evento = io_safe_output(substr($tmp->evento, 0, 253).'(...)'); if (strpos($tmp->evento, ' ') === false) { $tmp->evento = substr($tmp->evento, 0, 80).'(...)'; @@ -1642,7 +1644,8 @@ function process_datatables_item(item) { } evn += item.evento+''; if(item.hint !== ''){ - evn += ' '+item.hint+''; + let ruta = item.meta == true ? '../../images/tip_help.png' : 'images/tip_help.png'; + evn += ' '+item.hint+''; } item.mini_severity = '
';