Merge branch 'ent-10176-14779-error-calculo-de-servicios-con-modulos-deshabilitados' into 'develop'

Ent 10176 14779 error calculo de servicios con modulos deshabilitados

See merge request artica/pandorafms!5477
This commit is contained in:
Diego Muñoz-Reja 2023-02-09 11:24:19 +00:00
commit d89e29244b
1 changed files with 8 additions and 3 deletions

View File

@ -618,8 +618,13 @@ sub get_agent_status ($$$) {
$module_status = 2;
}
elsif ($module_status != 2) {
if ($m_status == 0) {
$module_status = 0;
if ($m_status == 3) {
$module_status = 3;
}
elsif ($module_status != 3) {
if ($m_status == 0) {
$module_status = 0;
}
}
}
}
@ -647,7 +652,7 @@ sub get_agent_status ($$$) {
return 3;
}
}
return $module_status;
}