From e290e8c315c406c2685001d00428aabeae390697 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 31 Mar 2014 16:28:35 +0000 Subject: [PATCH] 2014-03-31 Miguel de Dios * include/functions_visual_map.php, include/ajax/visual_console_builder.ajax.php: fixed the status color of the percentile bars and bubbles. Incident: #555 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9687 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- .../include/ajax/visual_console_builder.ajax.php | 6 +++--- pandora_console/include/functions_visual_map.php | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index be3d833929..7191fb6138 100644 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -204,9 +204,9 @@ switch ($action) { // Single object } - elseif (($layoutData["type"] == 0) - || ($layoutData["type"] == 3) - || ($layoutData["type"] == 4)) { + elseif (($layoutData["type"] == STATIC_GRAPH) + || ($layoutData["type"] == PERCENTILE_BAR) + || ($layoutData["type"] == LABEL)) { // Status for a simple module if ($layoutData['id_agente_modulo'] != 0) { $status = modules_get_agentmodule_status ($layoutData['id_agente_modulo']); diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 4a42187d6e..c29762b848 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -926,6 +926,8 @@ function visual_map_get_status_element($layoutData) { else { switch ($layoutData["type"]) { case STATIC_GRAPH: + case PERCENTILE_BAR: + case PERCENTILE_BUBBLE: if ($layoutData['id_metaconsole'] != 0) { //Metaconsole db connection $connection = db_get_row_filter ('tmetaconsole_setup',