From: Florent Bruneau Date: Sun, 30 Sep 2007 12:54:28 +0000 (+0200) Subject: Also checkout the name of the city from its id X-Git-Tag: xorg/0.9.15~86 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f08062c34562e0618993106f2a63fb2117be6943;p=platal.git Also checkout the name of the city from its id Signed-off-by: Florent Bruneau --- diff --git a/modules/search.php b/modules/search.php index 5c80760..0413ae2 100644 --- a/modules/search.php +++ b/modules/search.php @@ -170,7 +170,8 @@ class SearchModule extends PLModule 'text' => "(a.cat = 'GroupesX' OR a.cat = 'Institutions') AND pub = 'public' AND nom", 'exact' => false), 'section' => array('field' => 'id', 'table' => 'sections', 'text' => 'text', 'exact' => false), - 'school' => array('field' => 'id', 'table' => 'applis_def', 'text' => 'text', 'exact' => false) + 'school' => array('field' => 'id', 'table' => 'applis_def', 'text' => 'text', 'exact' => false), + 'city' => array('table' => 'geoloc_city', 'text' => 'name', 'exact' => false) ); foreach ($textFields as $field=>&$query) { if (!Env::v($field) && Env::v($field . 'Txt')) {