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

[TASK] Fixing a backend module bug that prevented the filter from showing when...

[TASK] Fixing a backend module bug that prevented the filter from showing when there are no search results
parent dd7d7ba9
No related branches found
No related tags found
No related merge requests found
......@@ -86,15 +86,14 @@ class BackendController extends ActionController {
$this->view->assign('pages', BackendService::getPagesWithJobRecords());
$this->view->assign('pageUid', $pageUid);
if ($totalJobCount) {
$this->view->assign('jobs', $jobs);
// get all Locations
/** @noinspection PhpUndefinedMethodInspection */
/** @var QueryResultInterface $categories */
$companies = $this->companyRepository->findByPid($pageUid);
$this->view->assign('locationOptions', $companies);
// get all Locations
/** @noinspection PhpUndefinedMethodInspection */
/** @var QueryResultInterface $companies */
$companies = $this->companyRepository->findByPid($pageUid);
$this->view->assign('locationOptions', $companies);
if ($totalJobCount || $companies->count()) {
$this->view->assign('jobs', $jobs);
$this->view->assign('filters', $filters);
$this->view->assign('pageUid', $pageUid);
$this->view->assign('typo3Version', VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version));
......
......@@ -17,13 +17,18 @@
<f:if condition="{noRecords}">
<f:then>
<f:if condition="{locationOptions}">
<f:render partial="Filter" arguments="{filters: filters, locationOptions: locationOptions}" />
<f:render partial="CreateJob" arguments="{pageUid:pageUid}" />
<p>
<f:translate key="backend.noJobsMessage" />
</p>
<f:then>
<f:render partial="Filter" arguments="{filters: filters, locationOptions: locationOptions}" />
<f:render partial="CreateJob" arguments="{pageUid:pageUid}" />
<p>
<f:translate key="backend.noJobsMessage" />
</p>
</f:then>
<f:else>
<f:render partial="SelectRoot" arguments="{pages: pages}" />
<f:render partial="CreateJob" arguments="{pageUid:pageUid}" />
</f:else>
</f:if>
<f:render partial="CreateJob" arguments="{pageUid:pageUid}" />
</f:then>
<f:else>
<f:render partial="Filter" arguments="{filters: filters, locationOptions: locationOptions}" />
......@@ -48,6 +53,7 @@
</f:then>
<f:else>
<f:render partial="SelectRoot" arguments="{pages: pages}" />
<f:render partial="CreateJob" arguments="{pageUid:pageUid}" />
</f:else>
</f:if>
......
......@@ -131,7 +131,7 @@
<target>Es gibt keine Datensätze auf dieser Seite</target>
</trans-unit>
<trans-unit id="backend.selectRootPage" approved="yes">
<source>Please select one of the following website roots:</source>
<source>Please select one of the following pages:</source>
<target>Bitte wählen Sie eine der folgenden Seiten aus:</target>
</trans-unit>
<trans-unit id="frontend.allVacancies" approved="yes">
......
......@@ -100,7 +100,7 @@
<source>There are no records on this page</source>
</trans-unit>
<trans-unit id="backend.selectRootPage">
<source>Please select one of the following website roots:</source>
<source>Please select one of the following pages:</source>
</trans-unit>
<trans-unit id="frontend.allVacancies">
<source>All vacancies</source>
......
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