Merge branch '2613_Error_en_filtrar_agentes_por_estado_en_bulk_operations' into 'develop'

Fixed error in agents bulk operations with a normal status

See merge request artica/pandorafms!1709
This commit is contained in:
vgilc 2018-09-28 10:24:27 +02:00
commit f98e2ed1bf
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@ function agents_get_group_agents (
if (isset($search['status'])) {
switch ($search['status']) {
case AGENT_STATUS_NORMAL:
$filter[] = "normal_count = total_count";
$filter[] = "(normal_count = total_count AND notinit_count <> total_count)";
break;
case AGENT_STATUS_WARNING:
$filter[] = "(critical_count = 0 AND warning_count > 0)";