From d9749aad03cdf1319edc2a2d6c70e8549f3cc46e Mon Sep 17 00:00:00 2001 From: "manuel.montes" Date: Tue, 4 Dec 2018 09:17:34 +0100 Subject: [PATCH] Fixed bug in agent detail filter --- pandora_console/include/functions_agents.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 07b665afc6..d69a27d8fe 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -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