From f08062c34562e0618993106f2a63fb2117be6943 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 30 Sep 2007 14:54:28 +0200 Subject: [PATCH] Also checkout the name of the city from its id Signed-off-by: Florent Bruneau --- modules/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) { -- 2.1.4