diff --git a/app/Controller/JobController.php b/app/Controller/JobController.php index eae017b..5b85fc4 100644 --- a/app/Controller/JobController.php +++ b/app/Controller/JobController.php @@ -54,7 +54,7 @@ class JobController extends AppController { $this->DreamjobJobOpening->data['DreamjobJobOpening']['company_id'] = $c['AppUser']['id']; if ($this->DreamjobJobOpening->save()) { $this->MiconwareSession->setFlash(__('dreamjob.opening.save.add'), 'flash', array('alert' => 'success')); - return $this->redirect(array('action' => 'openingByOpening','id'=>$this->DreamjobJobOpening->id)); + return $this->redirect(array('action' => 'applicationByOpening','id'=>$this->DreamjobJobOpening->id)); } else { $this->MiconwareSession->setFlash(__('dreamjob.opening.save.error'), 'flash', array('alert' => 'danger')); } @@ -92,7 +92,7 @@ class JobController extends AppController { $this->DreamjobJobOpening->data['DreamjobJobOpening']['company_id'] = $cid; if ($this->DreamjobJobOpening->save($this->DreamjobJobOpening->data)) { $this->MiconwareSession->setFlash(__('dreamjob.opening.save'), 'flash', array('alert' => 'success')); - return $this->redirect(array('action' => 'openingByOpening','id'=>$this->request->params['id'])); + return $this->redirect(array('action' => 'applicationByOpening','id'=>$this->request->params['id'])); } else $this->MiconwareSession->setFlash(__('dreamjob.opening.save.error'), 'flash', array('alert' => 'danger')); }