PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser_Admin » Bug #5310

order by on getUsers() doesn't work properly

Details

Submitted2005-09-06 13:35 UTC
Fromjeroen at terena dot nl
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version5.0.4
OSLinux
Roadmaps(Not assigned)

Comments

[2005-09-06 13:35 UTC] jeroen at terena dot nl

Description:
------------
Order by is ignored when listing the users from the perm container

Test script:
---------------
$params = array();
$params['orders'] = array('auth_user_id' => 'DESC');
$users = $lu_admin->perm->getUsers($params);

FYI: The following bit inside findTables() seems to cause $oders to be reset:
if (array_key_exists($field, $orders)) {
$orders[$this->alias[$field]] = $orders[$field];
unset($orders[$field]);
}

When the table isn't aliased, it gets reset. Changing $order to an empty array()

Expected result:
----------------
properly ordered array

Actual result:
--------------
default ordering