Skip to content
Snippets Groups Projects
Commit f6f9b5e6 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Fix broken joblist

parent 32e435b7
No related branches found
No related tags found
1 merge request!35Feature upgrade to typo3 11
......@@ -236,6 +236,7 @@ class JoblistController extends ActionController {
}
$this->view->assign('jobs', $jobs);
$this->view->assign('jobs2', 'just a job');
$this->view->assign('limit', $jobLimit);
$this->view->assign('numberOfPages', $numberOfPages);
......@@ -523,7 +524,7 @@ class JoblistController extends ActionController {
* @param int $rootPageId
* @throws \TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
*/
protected function assignFilterValues($rootPageId): ?\Psr\Http\Message\ResponseInterface {
protected function assignFilterValues($rootPageId): void {
$countries = $this->companyRepository->getAllCountries($rootPageId);
$this->view->assign('countries', $countries);
......@@ -538,12 +539,6 @@ class JoblistController extends ActionController {
$experienceLevels = $this->experienceLevelRepository->findAll();
$this->view->assign('experienceLevels', $experienceLevels);
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '11.0.0', '<')) {
return NULL;
} else {
return $this->htmlResponse();
}
}
/**
......
{namespace sg=SGalinski\SgJobs\ViewHelpers}
<f:layout name="Default" />
<f:section name="main">
<f:debug>{_all}</f:debug>
<f:render partial="JoblistListSchema" arguments="{_all}" />
<div id="sgjobs-joblist">
......
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