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

Bug #5310 order by on getUsers() doesn't work properly
Submitted: 2005-09-06 13:35 UTC
From: jeroen at terena dot nl Assigned: lsmith
Status: Closed Package: LiveUser_Admin
PHP Version: 5.0.4 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [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

Comments

 [2005-09-06 13:41 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!