diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index c11e3631a7..9542635942 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -967,17 +967,19 @@ foreach ($simple_alerts as $alert) { if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $policyInfo = policies_is_alert_in_policy2($alert['id'], false); $module_linked = policies_is_module_linked($alert['id_agent_module']); - if (is_array($policyInfo) === false && $module_linked === false) { + if ((is_array($policyInfo) === false && $module_linked === false) + || (is_array($policyInfo) === false && $module_linked === '1') + ) { $data[$index['policy']] = ''; } else { $module_linked = policies_is_module_linked($alert['id_agent_module']); if ($module_linked === '0') { $img = 'images/unlinkpolicy.png'; } else { - $img = 'images/policies_mc.png'; + $img = 'images/policy@svg.svg'; } - $data[1] .= '  '.html_print_image($img, true, ['title' => $policyInfo['name']]).''; + $data[1] .= '  '.html_print_image($img, true, ['title' => $policyInfo['name'], 'class' => 'invert_filter main_menu_icon']).''; } } } diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 2f88d2d86f..0486e07de4 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1246,20 +1246,22 @@ function ui_format_alert_row( $policyInfo = policies_is_alert_in_policy2($alert['id'], false); $module_linked = policies_is_module_linked($alert['id_agent_module']); - if (is_array($policyInfo) === false && $module_linked === false) { + if ((is_array($policyInfo) === false && $module_linked === false) + || (is_array($policyInfo) === false && $module_linked === '1') + ) { $data[$index['policy']] = ''; } else { $module_linked = policies_is_module_linked($alert['id_agent_module']); if ($module_linked === '0') { $img = 'images/unlinkpolicy.png'; } else { - $img = 'images/policies_mc.png'; + $img = 'images/policy@svg.svg'; } if (is_metaconsole() === false) { - $data[$index['policy']] = ''.html_print_image($img, true, ['title' => $policyInfo['name']]).''; + $data[$index['policy']] = ''.html_print_image($img, true, ['title' => $policyInfo['name'], 'class' => 'invert_filter main_menu_icon']).''; } else { - $data[$index['policy']] = ''.html_print_image($img, true, ['title' => $policyInfo['name']]).''; + $data[$index['policy']] = ''.html_print_image($img, true, ['title' => $policyInfo['name'], 'class' => 'invert_filter main_menu_icon']).''; } }