Merge branch 'ent-8441-12953-Estado-de-mapas-de-red-linkados' into 'develop'
Ent 8441 12953 estado de mapas de red linkados See merge request artica/pandorafms!4658
This commit is contained in:
commit
3e24773efa
|
@ -1671,12 +1671,17 @@ class NetworkMap
|
||||||
|
|
||||||
if (isset($source_data['color'])) {
|
if (isset($source_data['color'])) {
|
||||||
$item['color'] = $source_data['color'];
|
$item['color'] = $source_data['color'];
|
||||||
|
} else {
|
||||||
|
if (empty($node['status']) && empty($node['id_module']) && !empty($node['style']['id_networkmap'])) {
|
||||||
|
$status_aux = get_status_color_networkmap_fictional_point($node['style']['id_networkmap']);
|
||||||
|
$item['color'] = $status_aux;
|
||||||
} else {
|
} else {
|
||||||
$item['color'] = self::getColorByStatus(
|
$item['color'] = self::getColorByStatus(
|
||||||
$node['status'],
|
$node['status'],
|
||||||
(bool) $node['id_module']
|
(bool) $node['id_module']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3280,7 +3280,10 @@ function get_status_color_networkmap_fictional_point($id_networkmap, $parent='')
|
||||||
if ((int) $id_networkmap !== 0) {
|
if ((int) $id_networkmap !== 0) {
|
||||||
$agents = db_get_all_rows_filter(
|
$agents = db_get_all_rows_filter(
|
||||||
'titem',
|
'titem',
|
||||||
['id_map' => $id_networkmap]
|
[
|
||||||
|
'id_map' => $id_networkmap,
|
||||||
|
'deleted' => 0,
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((bool) $agents === false) {
|
if ((bool) $agents === false) {
|
||||||
|
|
Loading…
Reference in New Issue