Also checkout the name of the city from its id
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 30 Sep 2007 12:54:28 +0000 (14:54 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 30 Sep 2007 12:54:28 +0000 (14:54 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/search.php

index 5c80760..0413ae2 100644 (file)
@@ -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')) {