X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fsearch.php;h=8a5710b39f21599e6ec1cb21a4fbe9904e83b594;hb=0001ba7a34dc3b535407cb1b961781c3c69c0ccd;hp=9761dd42fffed0cce81a273e517ecfcdcb9a4df6;hpb=90862af65777b54eb2830b501729236fe50aa110;p=platal.git diff --git a/modules/search.php b/modules/search.php index 9761dd4..8a5710b 100644 --- a/modules/search.php +++ b/modules/search.php @@ -1,6 +1,6 @@ array('field' => 'network_type', 'table' => 'profile_networking_enum', 'text' => 'name', 'exact' => false), 'groupex' => array('field' => 'id', 'table' => 'groupex.asso', - 'text' => "(a.cat = 'GroupesX' OR a.cat = 'Institutions') AND pub = 'public' AND nom", + 'text' => "(cat = 'GroupesX' OR cat = 'Institutions') AND pub = 'public' AND nom", 'exact' => false), 'section' => array('field' => 'id', 'table' => 'sections', 'text' => 'text', 'exact' => false), 'school' => array('field' => 'id', 'table' => 'profile_education_enum', 'text' => 'name', 'exact' => false), @@ -289,10 +289,6 @@ class SearchModule extends PLModule $field = 'profile_job_enum.name'; $unique = 'profile_job.uid'; break; - case 'firstname': - $field = '`prenom`'; - $beginwith = false; - break; case 'fonctionTxt': $db = 'fonctions_def INNER JOIN profile_job ON (profile_job.fonctionid = fonctions_def.id)'; @@ -313,11 +309,6 @@ class SearchModule extends PLModule $realid = 'a.id'; $unique = 'm.uid'; break; - case 'name': - $field = '`nom`'; - $field2 = '`nom_usage`'; - $beginwith = false; - break; case 'nationaliteTxt': $db = '`geoloc_pays` INNER JOIN `auth_user_md5` ON (`geoloc_pays`.`a2` = `auth_user_md5`.`nationalite` OR @@ -328,11 +319,6 @@ class SearchModule extends PLModule `geoloc_pays`.`nat`)'; $realid = '`geoloc_pays`.`a2`'; break; - case 'nickname': - $field = '`profile_nick`'; - $db = '`auth_user_quick`'; - $beginwith = false; - break; case 'description': $db = 'profile_job'; $field = 'description';