redirect nach Bewerbungsversand

This commit is contained in:
Martin Müller 2014-05-12 16:24:48 +02:00
parent f5c0d7dd29
commit 3d63c0dbf1
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@ class JobController extends AppController {
$result = $this->DreamjobJobApplication->sendApplication($this->request->data);
if ($result) {
$this->MiconwareSession->setFlash(__('dreamjob.application.send.success'), 'flash', array('alert' => 'success'));
return $this->redirect(array('action' => 'applicationGet','id'=>$this->DreamjobJobApplication->id));
} else {
$this->MiconwareSession->setFlash(__('dreamjob.application.send.error'), 'flash', array('alert' => 'danger'));
}