PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser_Admin » Bug #4150

Error in Admin::getGroups

Details

Submitted2005-04-14 23:10 UTC
Fromjan at ivtaco dot se
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version5.0.2
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-04-14 23:10 UTC] jan at ivtaco dot se

Description:
------------
in the version av LiveUser_Admin 0.15.1 the function getGroups does not return the intended result. It:

1. Does only return the first level of subgroups (when an filter group_id is added.

2. Does return all groups without internal hierarchy if filter is removed (i.e. an empty array is used)

Reproduce code:
---------------
$groups = $admin->perm->getGroups(
array(
'select' => 'all',
'rekey' => true,
'filters' => array(),
'subgroups' => 'hierachy',
)
);

Expected result:
----------------
Get all groups, with subgroups listed in hierarchy.

Actual result:
--------------
Returns all groups as if they were all Level 0 groups.

[2005-04-17 18:41 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.

- typo fix: hierachy -> hierarchy (bug #4150)