Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #4633 Hierarchy mode on subgroups not recursive
Submitted: 2005-06-19 20:19 UTC
From: jan at ivtaco dot se Assigned: lsmith
Status: Closed Package: LiveUser_Admin
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-19 20:19 UTC] jan at ivtaco dot se
Description: ------------ A subgroup of a subgroup is not shown in hierarchy mode. Only level 1 subgroups are shown.

Comments

 [2005-06-20 10:44 UTC] smith at backendmedia dot com
Could you give us the entire API call. Note that the subgroup setting is silently ignored if you set a "select" to "one" or "row".
 [2005-06-20 10:53 UTC] jan at ivtaco dot se
$options = array( 'select' => 'all', 'rekey' => true, 'filters' => array('group_id' => $group_id), 'subgroups' => 'hierarchy' ); $admin->perm->getGroups( $options ); This assumes a group hierarchy with at least 3 groups [A, B, C]. 1. A parent to B 2. B parent to C As is I only get it to show A->B relation when $group_id = "A" And to get relation 2 I have to call the function with $group_id = "B"
 [2005-06-20 11:25 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.