Home » Authentication » LiveUser_Admin » Bug #4631
Hierarchy mode does not work when id's of groups with subgroups are not passed
Details
| Submitted | 2005-06-19 16:21 UTC |
|---|---|
| From | jan at ivtaco dot se |
| Assigned | lsmith |
| Status | Closed |
| Package | LiveUser_Admin |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-06-19 16:21 UTC] jan at ivtaco dot se
Description:
------------
When admin->perm->GetGroups() is called without an array with ids of groups with subgroups it does only return a list of all groups without any respect to internal group relations.
Hence:
$groups = $admin->perm->getGroups(
array(
'select' => 'all',
'rekey' => true,
'filters' => array(
'group_id' => $groups_with_subgroup),
'subgroups' => 'hierachy',
)
);
does return intended result whereas
$groups = $admin->perm->getGroups(
array(
'select' => 'all',
'rekey' => true,
'filters' => array(),
'subgroups' => 'hierachy',
)
);
does not.
Reproduce code:
---------------
$groups = $admin->perm->getGroups(
array(
'select' => 'all',
'rekey' => true,
'filters' => array(),
'subgroups' => 'hierachy',
)
);
Expected result:
----------------
An array with ALL groups and their subgroups
Actual result:
--------------
A n array with all the groups without their subgroups.
[2005-06-19 16:23 UTC] jan at ivtaco dot se
"hierachy" should be changed on all occasions to "hierarchy"
[2005-06-19 16:47 UTC] smith at backendmedia dot com
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
i didnt find anymore instances of said typo ..