Merge branch '2869-Filtro-de-estado-not-normal-incorrecto-en-vista-de-agent-detail2' into 'develop'

Fixed bug in agent detail filter

See merge request artica/pandorafms!2034
This commit is contained in:
vgilc 2018-12-04 10:16:05 +01:00
commit df5c5df6d2

View File

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