Fixed error in agents bulk operations with a normal status

This commit is contained in:
samucarc 2018-08-21 17:21:28 +02:00
parent c072ed1fdb
commit 2687c9fce6
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,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)";