Fixed filter count in agent detail.

This commit is contained in:
fermin831 2018-07-03 13:22:23 +02:00
parent 95678f706b
commit d1eaef6f6d
2 changed files with 2 additions and 2 deletions

View File

@ -2688,7 +2688,7 @@ function agents_get_all_groups_agent ($id_agent, $group = false) {
*/
function agents_count_agents_filter ($filter = array(), $access = "AR") {
$total_agents = agents_get_agents(
array ('id_group' => $id_group),
$filter,
array ('COUNT(DISTINCT id_agente) as total'),
$access
);

View File

@ -9335,7 +9335,7 @@ function api_get_total_agents($id_group, $trash1, $trash2, $returnType) {
return;
}
$total_agents = agents_count_agents_filter(array ('id_group' => $id_group));
$total_agents = agents_count_agents_filter(array ('id_grupo' => $id_group));
$data = array('type' => 'string', 'data' => $total_agents);
returnData($returnType, $data);