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

[TASK] Fixing teaser issue

parent fbf21de6
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,11 @@ class JobTeaserController extends ActionController {
*/
public function indexAction() {
$totalAmountOfOffers = $this->jobRepository->countAll();
$querySettings = $this->jobRepository->createQuery()->getQuerySettings();
$querySettings->setIgnoreEnableFields(FALSE);
$this->jobRepository->setDefaultQuerySettings($querySettings);
$featuredOffers = $this->jobRepository->findByFeaturedOffer(TRUE);
$this->view->assign('totalAmountOfOffers', $totalAmountOfOffers);
$this->view->assign('featuredOffers', $featuredOffers);
......
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