Fixed bug in agent status filter

This commit is contained in:
manuel.montes 2018-10-04 16:35:37 +02:00
parent 21c9a7ee4a
commit 07e476a740
1 changed files with 4 additions and 2 deletions

View File

@ -355,10 +355,12 @@ function agents_get_agents ($filter = false, $fields = false,
break;
case AGENT_STATUS_NOT_NORMAL:
$status_sql =
"(
"normal_count <> total_count";
//The AGENT_STATUS_NOT_NORMAL filter must show all agents that are not in normal status
/*"(
normal_count <> total_count
AND
(normal_count + notinit_count) <> total_count)";
(normal_count + notinit_count) <> total_count)";*/
break;
case AGENT_STATUS_NOT_INIT:
$status_sql = "notinit_count = total_count";