mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-2405-recuento-y-paginado-vista-agent-detail' into 'develop'
Fixed filter count in agent detail. See merge request artica/pandorafms!1591
This commit is contained in:
commit
8d639b031e
@ -2691,7 +2691,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
|
||||||
);
|
);
|
||||||
|
@ -9341,7 +9341,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