diff --git a/pandora_console/include/class/NetworkMap.class.php b/pandora_console/include/class/NetworkMap.class.php index ccfbf102c1..470a0deb52 100644 --- a/pandora_console/include/class/NetworkMap.class.php +++ b/pandora_console/include/class/NetworkMap.class.php @@ -1672,7 +1672,7 @@ class NetworkMap if (isset($source_data['color'])) { $item['color'] = $source_data['color']; } else { - if (empty($node['status']) && empty($node['id_module']) && !empty($node['style']['id_networkmap'])) { + if (empty($node['style']['id_networkmap']) === false) { $status_aux = get_status_color_networkmap_fictional_point($node['style']['id_networkmap']); $item['color'] = $status_aux; } else { diff --git a/pandora_console/operation/agentes/pandora_networkmap.view.php b/pandora_console/operation/agentes/pandora_networkmap.view.php index 6d118d6e10..e35ba182a1 100644 --- a/pandora_console/operation/agentes/pandora_networkmap.view.php +++ b/pandora_console/operation/agentes/pandora_networkmap.view.php @@ -881,7 +881,11 @@ if (is_ajax() === true) { $shape = get_parameter('shape', 0); $radious = (int) get_parameter('radious', 20); $color = get_parameter('color', 0); + $networkmap = (int) get_parameter('networkmap', 0); + if (empty($networkmap) === false) { + $color = get_status_color_networkmap_fictional_point($networkmap); + } $return = []; $return['correct'] = false;