mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
ee74f5e15f
commit
8b53e84ce2
@ -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>
|
2011-07-07 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/groups/group_list.php: Added code for get agent filter
|
* 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 ($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));
|
$id_group = array_keys(users_get_groups(false, "AR", true, false, (array)$id_group));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user