#10052 Fixed fictional color
This commit is contained in:
parent
172cb38045
commit
0832d9613a
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue