[drupal-devel] [bug] Small patch to sort "new users" correctly
killes
drupal-devel at drupal.org
Tue Aug 9 17:06:10 UTC 2005
Issue status update for
http://drupal.org/node/18778
Post a follow up:
http://drupal.org/project/comments/add/18778
Project: Drupal
Version: cvs
Component: user system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Olen
Updated by: killes at www.drop.org
-Status: active
+Status: patch (ready to be committed)
Attachment: http://drupal.org/files/issues/usersort.patch (767 bytes)
Right.
killes at www.drop.org
Previous comments:
------------------------------------------------------------------------
Sat, 12 Mar 2005 10:53:00 +0000 : Olen
After importing and merging several drupal installastions, i came across
this "bug".
Nothing important, but I think it's better to sort the users after
"created" than "uid" when getting the latest aditions.
--- user.module.orig 2005-03-12 11:48:54.485881868 +0100
+++ user.module 2005-03-12 11:49:06.146192209 +0100
@@ -526,7 +526,7 @@
case 2:
if (user_access('access content')) {
- $result = db_query_range('SELECT uid, name FROM {users}
WHERE status != 0 ORDER BY uid DESC', 0, 5);
+ $result = db_query_range('SELECT uid, name FROM {users}
WHERE status != 0 ORDER BY created DESC', 0, 5);
while ($account = db_fetch_object($result)) {
$items[] = format_name($account);
}
More information about the drupal-devel
mailing list