Skip to content
Snippets Groups Projects
Commit 43bdf4a4 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix missing company in the application data

parent 48529ef5
No related branches found
No related tags found
No related merge requests found
......@@ -423,7 +423,7 @@ class JoblistController extends ActionController {
. '-' . $applicationData->getLastName();
$storage = $resourceFactory->getStorageObject(1);
$applicationFilePath = Environment::getPublicPath() . '/' . $storage->getConfiguration(
)['basePath'] . 'JobApplication/' . $folderName .
)['basePath'] . 'JobApplication/' . $folderName .
'/' . $newName . '.csv';
$this->writeApplicationFile($applicationData, $applicationFilePath);
}
......@@ -469,6 +469,13 @@ class JoblistController extends ActionController {
/** @var Company $company */
$applyData->setCompany($company);
}
} elseif (!$applyData->getCompany()) {
$company = $this->companyRepository->findByUid(
(int) $_POST['tx_sgjobs_jobapplication']['applyData']['company']
);
if ($company) {
$applyData->setCompany($company);
}
}
$applyData->setPid($GLOBALS['TSFE']->id);
......@@ -589,7 +596,9 @@ class JoblistController extends ActionController {
$departments = $this->departmentRepository->findAllByFilter($filters['filterByDepartment'] ?? []);
$this->view->assign('departments', $departments);
$experienceLevels = $this->experienceLevelRepository->findAllByFilter($filters['filterByExperienceLevel'] ?? []);
$experienceLevels = $this->experienceLevelRepository->findAllByFilter(
$filters['filterByExperienceLevel'] ?? []
);
$this->view->assign('experienceLevels', $experienceLevels);
}
......
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