[vhffs-dev] [1904] Selecting the user id in the search function fixes the

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1904
Author:   guillaumito
Date:     2011-09-07 22:23:54 +0200 (Wed, 07 Sep 2011)
Log Message:
-----------
Selecting the user id in the search function fixes the
"can't add user in group after search" bug.
Just hope I didn't broke anything as that search function
may be use elsewhere... please check :)

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Panel/User.pm

Modified: trunk/vhffs-api/src/Vhffs/Panel/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/User.pm	2011-08-21 16:12:56 UTC (rev 1903)
+++ trunk/vhffs-api/src/Vhffs/Panel/User.pm	2011-09-07 20:23:54 UTC (rev 1904)
@@ -103,7 +103,7 @@
 	my ($main, $name) = @_;
 
     my @params;
-    my $sql = 'SELECT u.username, u.firstname || \' \' || u.lastname as realname, o.state '.
+    my $sql = 'SELECT u.uid, u.username, u.firstname || \' \' || u.lastname as realname, o.state '.
         'FROM vhffs_users u '.
         'INNER JOIN vhffs_object o ON (o.object_id = u.object_id) ';
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/