[Fusionforge-commits] r8543 - trunk/gforge/www/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Dec 16 20:56:47 CET 2009


Author: aljeux
Date: 2009-12-16 20:56:47 +0100 (Wed, 16 Dec 2009)
New Revision: 8543

Modified:
   trunk/gforge/www/admin/userlist.php
Log:
Changed order of users to realname in userlist

Modified: trunk/gforge/www/admin/userlist.php
===================================================================
--- trunk/gforge/www/admin/userlist.php	2009-12-16 19:56:42 UTC (rev 8542)
+++ trunk/gforge/www/admin/userlist.php	2009-12-16 19:56:47 UTC (rev 8543)
@@ -139,10 +139,10 @@
 	print "\n</p>";
 
 	if ($user_name_search) {
-		$result = db_query_params ('SELECT user_name,lastname,firstname,user_id,status,add_date FROM users WHERE lower(user_name) LIKE $1 OR lower(lastname) LIKE $1 ORDER BY lastname',
+		$result = db_query_params ('SELECT user_name,lastname,firstname,user_id,status,add_date FROM users WHERE lower(user_name) LIKE $1 OR lower(lastname) LIKE $1 ORDER BY realname',
 					   array (strtolower("$user_name_search%")));
 	} else {
-		$sortorder = getStringFromRequest('sortorder', 'user_name');
+		$sortorder = getStringFromRequest('sortorder', 'realname');
 		$result = db_query_params("SELECT user_name,lastname,firstname,user_id,status,add_date FROM users ORDER BY $1", array($sortorder));
 	}
 	show_users_list ($result);




More information about the Fusionforge-commits mailing list