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

[TASK] Fixing filters

parent 4deaf9fb
No related branches found
No related tags found
No related merge requests found
......@@ -356,6 +356,13 @@ class FrontendFilterService {
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
/** @var JobRepository $jobRepository */
$jobRepository = $objectManager->get(JobRepository::class);
// when filters are set, but there are no companies found, return an empty result
if (empty(!$filters) && empty($companies)) {
return $companies;
}
// return the filtered jobs
return $jobRepository->findByCompanyId($recordPageId, $result)->toArray();
}
}
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