city abhängigkeit herstellen
This commit is contained in:
parent
1ce809293f
commit
43f6cd6b61
|
@ -91,8 +91,7 @@ class SearchController extends AppController {
|
|||
$con['DreamjobJobOpening.kindofjob_id']=$this->request->data['DreamjobJobOpening']['kindofjob_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']='%'.$con['DreamjobJobOpening.city LIKE']['DreamjobListCity']['name'].'%';
|
||||
$con['DreamjobJobOpening.city_id']=$con['DreamjobJobOpening']['city'];
|
||||
}
|
||||
if(!empty($this->request->data['DreamjobJobOpening']['postcode']))
|
||||
$con['DreamjobJobOpening.postcode LIKE'] = '%'.$this->request->data['DreamjobJobOpening']['postcode'].'%';
|
||||
|
@ -122,8 +121,7 @@ class SearchController extends AppController {
|
|||
$con['DreamjobCompany.branch_id']=$this->request->data['DreamjobCompany']['branch_id'];
|
||||
|
||||
if(!empty($this->request->data['DreamjobUser']['city']) and $this->request->data['DreamjobUser']['city'] != 48){
|
||||
$con['DreamjobUser.city']=$this->DreamjobListCity->find('first',array('conditions' => array('id'=>$this->request->data['DreamjobUser']['city'])));
|
||||
$con['DreamjobUser.city']=$con['DreamjobUser.city']['DreamjobListCity']['name'];
|
||||
$con['DreamjobUser.city_id']=$data['DreamjobUser']['city'];
|
||||
}
|
||||
if(!empty($this->request->data['AppUser']['nickname']))
|
||||
$con['AppUser.nickname LIKE'] = '%'.$this->request->data['AppUser']['nickname'].'%';
|
||||
|
|
Loading…
Reference in New Issue