This commit is contained in:
Martin Müller 2014-05-07 10:53:10 +02:00
parent f684517432
commit 41bfcca04b
1 changed files with 2 additions and 2 deletions

View File

@ -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'));
}