Fixed bug in agent detail filter

This commit is contained in:
manuel.montes 2018-12-04 09:17:34 +01:00
parent 426128bb51
commit d9749aad03
1 changed files with 3 additions and 2 deletions

View File

@ -360,8 +360,9 @@ function agents_get_agents ($filter = false, $fields = false,
AND unknown_count > 0)";
break;
case AGENT_STATUS_NOT_NORMAL:
$status_sql =
"normal_count <> total_count";
$status_sql = "(
normal_count <> total_count
OR total_count = notinit_count)";
//The AGENT_STATUS_NOT_NORMAL filter must show all agents that are not in normal status
/*"(
normal_count <> total_count