From 07e476a740e98b2906562004185b129f30fdd777 Mon Sep 17 00:00:00 2001 From: "manuel.montes" Date: Thu, 4 Oct 2018 16:35:37 +0200 Subject: [PATCH] Fixed bug in agent status filter --- pandora_console/include/functions_agents.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 426a5c2e6b..1495941d73 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -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";