mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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") {
|
function agents_count_agents_filter ($filter = array(), $access = "AR") {
|
||||||
$total_agents = agents_get_agents(
|
$total_agents = agents_get_agents(
|
||||||
array ('id_group' => $id_group),
|
$filter,
|
||||||
array ('COUNT(DISTINCT id_agente) as total'),
|
array ('COUNT(DISTINCT id_agente) as total'),
|
||||||
$access
|
$access
|
||||||
);
|
);
|
||||||
|
@ -9335,7 +9335,7 @@ function api_get_total_agents($id_group, $trash1, $trash2, $returnType) {
|
|||||||
return;
|
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);
|
$data = array('type' => 'string', 'data' => $total_agents);
|
||||||
returnData($returnType, $data);
|
returnData($returnType, $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user