From 9e0168cd6ce2deb3e5d3d4c81eb49cfc3f2f8d16 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 27 Dec 2019 10:24:48 +0100 Subject: [PATCH] Fixed bug in metaconsole alerts view --- pandora_console/include/functions_ui.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index c23ac1ea2b..ca2cb2c248 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1144,7 +1144,7 @@ function ui_format_alert_row( $data[$index['agent_name']] = $disabledHtmlStart; if ($agent == 0) { - $data[$index['module_name']] .= ui_print_truncate_text(isset($alert['agent_module_name']) ? $alert['agent_module_name'] : modules_get_agentmodule_name($alert['id_agent_module']), 'module_small', false, true, true, '[…]', 'font-size: 7.2pt'); + $data[$index['module_name']] .= ui_print_truncate_text(isset($alert['agent_module_name']) ? $alert['agent_module_name'] : modules_get_agentmodule_name($alert['id_agent_module']), 'module_small', false, true, true, '[…]', ''); } else { if (defined('METACONSOLE')) { $agent_name = $alert['agent_name']; @@ -1155,16 +1155,16 @@ function ui_format_alert_row( } if (defined('METACONSOLE') || !can_user_access_node()) { - $data[$index['agent_name']] = ui_print_truncate_text($agent_name, 'agent_small', false, true, false, '[…]', 'font-size:7.5pt;'); + $data[$index['agent_name']] = ui_print_truncate_text($agent_name, 'agent_small', false, true, true, '[…]', ''); } else { if ($agent_style !== false) { - $data[$index['agent_name']] .= ' '.$agente['alias'].''; + $data[$index['agent_name']] .= ' '.$agente['alias'].''; } else { - $data[$index['agent_name']] .= ' '.$agente['alias'].''; + $data[$index['agent_name']] .= ' '.$agente['alias'].''; } } - $data[$index['module_name']] = ui_print_truncate_text(isset($alert['agent_module_name']) ? $alert['agent_module_name'] : modules_get_agentmodule_name($alert['id_agent_module']), 'module_small', false, true, true, '[…]', 'font-size: 7.2pt'); + $data[$index['module_name']] = ui_print_truncate_text(isset($alert['agent_module_name']) ? $alert['agent_module_name'] : modules_get_agentmodule_name($alert['id_agent_module']), 'module_small', false, true, true, '[…]', ''); } $data[$index['agent_name']] .= $disabledHtmlEnd; @@ -1184,7 +1184,7 @@ function ui_format_alert_row( FROM talert_templates WHERE id = '.$alert['id_alert_template'] ); - $data[$index['description']] .= $disabledHtmlStart.ui_print_truncate_text(io_safe_output($description), 'description', false, true, true, '[…]', 'font-size: 7.1pt').$disabledHtmlEnd; + $data[$index['description']] .= $disabledHtmlStart.ui_print_truncate_text(io_safe_output($description), 'description', false, true, true, '[…]', '').$disabledHtmlEnd; $actions = alerts_get_alert_agent_module_actions($alert['id'], false, $alert['server_data']['id']);