From 510a693c0b101d539cd8d7000e9a14f5eab7b5a9 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 18 Nov 2013 15:10:11 +0000 Subject: [PATCH] 2013-11-18 Sergio Martin * include/functions_visual_map.php: Fixed status of visual map items when have a fired alert for incident #391 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9091 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_visual_map.php | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 82900d73d7..e89d5a517e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-11-18 Sergio Martin + + * include/functions_visual_map.php: Fixed status + of visual map items when have a fired alert for + incident #391 + 2013-11-15 Vanessa Gil * include/languages/ar.mo diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index c1c556b73e..2316941b6e 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -844,6 +844,10 @@ 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();