Compares last and first names to their previous values instead of the initial value...
authorStéphane Jacob <sj@m4x.org>
Fri, 18 Jun 2010 20:35:58 +0000 (22:35 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 18 Jun 2010 20:35:58 +0000 (22:35 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php

index 470d7ec..ffdea4e 100644 (file)
@@ -136,8 +136,8 @@ class ProfileSettingSearchNames implements ProfileSetting
             $res = XDB::query("SELECT  s.particle, s.name
                                  FROM  profile_name      AS s
                            INNER JOIN  profile_name_enum AS e ON (e.id = s.typeid)
-                                WHERE  s.pid = {?} AND e.type LIKE '%ini'
-                             ORDER BY  e.type = 'firstname_ini'",
+                                WHERE  s.pid = {?} AND (e.type = 'lastname' OR e.type = 'firstname')
+                             ORDER BY  e.type = 'firstname'",
                              $page->pid());
             $res = $res->fetchAllAssoc();
             $initial = array();