Skip to content
Snippets Groups Projects
Commit 9b722051 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] remove created applications, if an exception was thrown (e.g....

[BUGFIX] remove created applications, if an exception was thrown (e.g. mimetype mismatch for the uploaded files)
parent d0b0352a
No related branches found
No related tags found
1 merge request!47[BUGFIX] remove created applications, if an exception was thrown (e.g....
......@@ -691,6 +691,8 @@ class JoblistController extends ActionController {
$this->deleteTmpFolder($folderName);
$job = $applyData->getJob();
$jobId = $job !== NULL ? $job->getUid() : NULL;
// remove application, since there was an exception (e.g. upload filetype mismatch @see: moveTmpFolder())
$this->jobApplicationRepository->remove($applyData);
$this->request->setArgument('folderName', $folderName);
$this->forward(
'applyForm',
......
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