Fixed filter count in agent detail.
This commit is contained in:
parent
95678f706b
commit
d1eaef6f6d
|
@ -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
|
||||
);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue