Fixed problems with show groups in bulk alerts actions. Tiquet: #3078

(cherry picked from commit 6cafa4dc70)
This commit is contained in:
m-lopez-f 2015-12-16 11:40:24 +01:00
parent 0624bed1ec
commit 05a723b440
1 changed files with 4 additions and 12 deletions

View File

@ -31,7 +31,7 @@ require_once($config['homedir'] . '/include/functions_users.php');
if (is_ajax ()) {
$get_agents = (bool) get_parameter ('get_agents');
$recursion = (int) get_parameter ('recursion');
$recursion = (bool) get_parameter ('recursion',false);
if ($get_agents) {
$id_group = (int) get_parameter ('id_group', 0);
@ -49,17 +49,9 @@ if (is_ajax ()) {
),
false, "", false, $recursion);
}
else {
$agents = agents_get_group_agents (
array_keys(
users_get_groups(
$config["id_user"],
"AW",
true,
false,
array($id_group) )
),
false, "", false, $recursion);
else {
$agents = agents_get_group_agents ( $id_group,
false, "", false, $recursion);
}
// Add keys prefix