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',