From 645ed14ac3f5e7335092c8e14087460285b99377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Thu, 17 Apr 2014 12:53:41 +0200 Subject: [PATCH] suche --- app/Controller/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/SearchController.php b/app/Controller/SearchController.php index 7857612..54854a4 100644 --- a/app/Controller/SearchController.php +++ b/app/Controller/SearchController.php @@ -58,7 +58,7 @@ class SearchController extends AppController { $con['DreamjobJobOpening.branch_id']=$this->request->data['DreamjobJobOpening']['branch_id']; if(!empty($this->request->data['DreamjobJobOpening']['city']) and $this->request->data['DreamjobJobOpening']['city'] != 48){ - $con['DreamjobJobOpening.city LIKE']=$this->DreamjobListCity->find('first',array('conditions' => array('id'=>$this->request->data['DreamjobJobOpening']['city'])); + $con['DreamjobJobOpening.city LIKE']=$this->DreamjobListCity->find('first',array('conditions' => array('id'=>$this->request->data['DreamjobJobOpening']['city']))); $con['DreamjobJobOpening.city LIKE']='%'.$con['DreamjobJobOpening.city LIKE']['DreamjobListCity']['name'].'%'; } if(!empty($this->request->data['DreamjobJobOpening']['title']))