mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch '2611-Cache_de_vista_de_arbol_y_vista_de_grupos' into 'develop'
fixed performance in group view See merge request artica/pandorafms!1734
This commit is contained in:
commit
4e7d641667
@ -2941,15 +2941,18 @@ function group_get_groups_list($id_user = false, $user_strict = false, $access =
|
||||
|
||||
function groups_get_group_deep ($id_group) {
|
||||
global $config;
|
||||
$parents = groups_get_parents($id_group, false);
|
||||
|
||||
|
||||
$groups = users_get_groups(false, "AR", true, true);
|
||||
|
||||
$parents = groups_get_parents($id_group, false, $groups);
|
||||
|
||||
if (empty($parents)) {
|
||||
$deep = "";
|
||||
}
|
||||
else {
|
||||
$deep = str_repeat(" ", count($parents));
|
||||
}
|
||||
|
||||
|
||||
return $deep;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user