#10052 Fixed fictional color

This commit is contained in:
Daniel Maya 2023-01-10 16:40:53 +01:00
parent 172cb38045
commit 0832d9613a
2 changed files with 5 additions and 1 deletions

View File

@ -1672,7 +1672,7 @@ class NetworkMap
if (isset($source_data['color'])) { if (isset($source_data['color'])) {
$item['color'] = $source_data['color']; $item['color'] = $source_data['color'];
} else { } 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']); $status_aux = get_status_color_networkmap_fictional_point($node['style']['id_networkmap']);
$item['color'] = $status_aux; $item['color'] = $status_aux;
} else { } else {

View File

@ -881,7 +881,11 @@ if (is_ajax() === true) {
$shape = get_parameter('shape', 0); $shape = get_parameter('shape', 0);
$radious = (int) get_parameter('radious', 20); $radious = (int) get_parameter('radious', 20);
$color = get_parameter('color', 0); $color = get_parameter('color', 0);
$networkmap = (int) get_parameter('networkmap', 0); $networkmap = (int) get_parameter('networkmap', 0);
if (empty($networkmap) === false) {
$color = get_status_color_networkmap_fictional_point($networkmap);
}
$return = []; $return = [];
$return['correct'] = false; $return['correct'] = false;