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:
vgilc 2017-12-14 15:53:52 +01:00
commit 31c7456bd2
1 changed files with 6 additions and 3 deletions

View File

@ -3464,13 +3464,16 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0, $elements_in_
return VISUAL_MAP_STATUS_NORMAL;
$stcount = 0;
$stcount_u = 0;
foreach ($result as $data) {
if ($data['type'] == 0) {
$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;
}
@ -3817,4 +3820,4 @@ function visual_map_macro($label,$module){
return $label;
}
?>
?>