| @@ 149-152 (lines=4) @@ | ||
| 146 | ) |
|
| 147 | ); |
|
| 148 | } |
|
| 149 | if ($returnTo) { |
|
| 150 | $returnTo->setQuery($returnTo->getQueryAsArray() + array('status' => 'failure')); |
|
| 151 | return $this->redirect()->toUrl((string) $returnTo); |
|
| 152 | } |
|
| 153 | $this->notification()->error(/*@translate*/ 'There were errors in the form.'); |
|
| 154 | ||
| 155 | } else { |
|
| @@ 260-263 (lines=4) @@ | ||
| 257 | ) |
|
| 258 | ); |
|
| 259 | } |
|
| 260 | if ($returnTo) { |
|
| 261 | $returnTo->setQuery($returnTo->getQueryAsArray() + array('status' => 'success')); |
|
| 262 | return $this->redirect()->toUrl((string) $returnTo); |
|
| 263 | } |
|
| 264 | $this->notification()->success(/*@translate*/ 'your application was sent successfully'); |
|
| 265 | $viewModel->setVariable('isApplicationSaved', true); |
|
| 266 | } |
|