mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge branch '1698-Calculo-de-estado-erroneo-en-consolas-visuales-Carrefour-2' into 'develop'
Visual console status calculate errors / 2 - #1698 See merge request artica/pandorafms!1185
This commit is contained in:
commit
31c7456bd2
@ -3464,13 +3464,16 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0, $elements_in_
|
|||||||
return VISUAL_MAP_STATUS_NORMAL;
|
return VISUAL_MAP_STATUS_NORMAL;
|
||||||
|
|
||||||
$stcount = 0;
|
$stcount = 0;
|
||||||
|
$stcount_u = 0;
|
||||||
foreach ($result as $data) {
|
foreach ($result as $data) {
|
||||||
if ($data['type'] == 0) {
|
if ($data['type'] == 0) {
|
||||||
$stcount++;
|
$stcount++;
|
||||||
|
if ($data["id_layout_linked"] == 0 && $data["id_agente_modulo"] == 0 && $data["id_agent"] == 0) {
|
||||||
|
$stcount_u++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($stcount == 0) {
|
if ($stcount == 0 || $stcount_u == $stcount) {
|
||||||
return VISUAL_MAP_STATUS_UNKNOWN;
|
return VISUAL_MAP_STATUS_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3817,4 +3820,4 @@ function visual_map_macro($label,$module){
|
|||||||
return $label;
|
return $label;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user