diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d5b4825144..76368bbd7b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-11-20 Sergio Martin + + * include/functions_visual_map.php: Fixed visual console links + to other visual consoles when there are alert fired on them + for bug #391 + 2013-11-19 Ramon Novoa * godmode/reporting/reporting_builder.php, diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 2316941b6e..52abd9c94d 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -844,10 +844,6 @@ function visual_map_get_status_element($layoutData) { $id_agent = 0; } - if ($status == AGENT_MODULE_STATUS_CRITICAL_ALERT) { - $status = VISUAL_MAP_STATUS_CRITICAL_ALERT; - } - if ($layoutData['id_metaconsole'] != 0) { //Restore db connection metaconsole_restore_db(); @@ -863,6 +859,10 @@ function visual_map_get_status_element($layoutData) { } } + if ($status == AGENT_MODULE_STATUS_CRITICAL_ALERT) { + $status = VISUAL_MAP_STATUS_CRITICAL_ALERT; + } + return $status; }