2011-07-08 Junichi Satoh <junichi@rworks.jp>
* include/functions_agents.php: Fixed agents_get_group_agents() does not work correctly with $childGroups enabled. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4529 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9c7b719820
commit
584c484213
|
@ -1,3 +1,8 @@
|
|||
2011-07-08 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/functions_agents.php: Fixed agents_get_group_agents()
|
||||
does not work correctly with $childGroups enabled.
|
||||
|
||||
2011-07-07 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/groups/group_list.php: Added code for get agent filter
|
||||
|
|
|
@ -756,6 +756,14 @@ function agents_get_group_agents ($id_group = 0, $search = false, $case = "lower
|
|||
}
|
||||
|
||||
if ($childGroups) {
|
||||
if (is_array($id_group)) {
|
||||
foreach ($id_group as $parent) {
|
||||
$id_group = array_merge($id_group, groups_get_id_recursive($parent, true));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$id_group = groups_get_id_recursive($id_group, true);
|
||||
}
|
||||
$id_group = array_keys(users_get_groups(false, "AR", true, false, (array)$id_group));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue