Fixed problems with show groups in bulk alerts actions. Tiquet: #3078
(cherry picked from commit 6cafa4dc70
)
This commit is contained in:
parent
0624bed1ec
commit
05a723b440
|
@ -31,7 +31,7 @@ require_once($config['homedir'] . '/include/functions_users.php');
|
||||||
|
|
||||||
if (is_ajax ()) {
|
if (is_ajax ()) {
|
||||||
$get_agents = (bool) get_parameter ('get_agents');
|
$get_agents = (bool) get_parameter ('get_agents');
|
||||||
$recursion = (int) get_parameter ('recursion');
|
$recursion = (bool) get_parameter ('recursion',false);
|
||||||
|
|
||||||
if ($get_agents) {
|
if ($get_agents) {
|
||||||
$id_group = (int) get_parameter ('id_group', 0);
|
$id_group = (int) get_parameter ('id_group', 0);
|
||||||
|
@ -49,17 +49,9 @@ if (is_ajax ()) {
|
||||||
),
|
),
|
||||||
false, "", false, $recursion);
|
false, "", false, $recursion);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$agents = agents_get_group_agents (
|
$agents = agents_get_group_agents ( $id_group,
|
||||||
array_keys(
|
false, "", false, $recursion);
|
||||||
users_get_groups(
|
|
||||||
$config["id_user"],
|
|
||||||
"AW",
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
array($id_group) )
|
|
||||||
),
|
|
||||||
false, "", false, $recursion);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add keys prefix
|
// Add keys prefix
|
||||||
|
|
Loading…
Reference in New Issue