Skip to content
Snippets Groups Projects
Commit 18a8240f authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing unreliable error, but losing form values

parent f346b95c
No related branches found
No related tags found
1 merge request!7Feature max file size
...@@ -213,9 +213,7 @@ class JoblistController extends ActionController { ...@@ -213,9 +213,7 @@ class JoblistController extends ActionController {
$uniqueFolderName = $this->request->getArgument('folderName'); $uniqueFolderName = $this->request->getArgument('folderName');
} catch (NoSuchArgumentException $exception) { } catch (NoSuchArgumentException $exception) {
$exceptionMessage = 'Eine Datei konnte nicht hochgeladen werden. Ist diese eventuell zu groß?'; $exceptionMessage = 'Eine Datei konnte nicht hochgeladen werden. Ist diese eventuell zu groß?';
$this->redirect('applyForm', NULL, NULL, ['error' => $exceptionMessage]);
$_POST[self::ERROR_KEY_IN_POST] = $exceptionMessage;
$this->forwardToReferringRequest();
exit; exit;
} }
...@@ -225,8 +223,7 @@ class JoblistController extends ActionController { ...@@ -225,8 +223,7 @@ class JoblistController extends ActionController {
$exceptionMessage = 'Bitte beachten Sie die maximale Upload Größe von ' $exceptionMessage = 'Bitte beachten Sie die maximale Upload Größe von '
. (int) ($this->settings['allowedMaxFileSize'] / 1000) . 'MB'; . (int) ($this->settings['allowedMaxFileSize'] / 1000) . 'MB';
if (!$this->checkFileSizes($applyDataArray)) { if (!$this->checkFileSizes($applyDataArray)) {
$_POST[self::ERROR_KEY_IN_POST] = $exceptionMessage; $this->redirect('applyForm', NULL, NULL, ['error' => $exceptionMessage]);
$this->forwardToReferringRequest();
exit; exit;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment