diff --git a/Classes/Service/FrontendFilterService.php b/Classes/Service/FrontendFilterService.php index 374ca8648a0605c36af27115f6cd1b688be141da..8126955f81ca7a0e103b0510ced5f92d92aed1db 100644 --- a/Classes/Service/FrontendFilterService.php +++ b/Classes/Service/FrontendFilterService.php @@ -28,6 +28,8 @@ namespace SGalinski\SgJobs\Service; use SGalinski\SgJobs\Domain\Repository\JobRepository; use TYPO3\CMS\Core\Database\ConnectionPool; +use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction; +use TYPO3\CMS\Core\Database\Query\Restriction\FrontendRestrictionContainer; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Object\ObjectManager; @@ -59,6 +61,12 @@ class FrontendFilterService { , $queryBuilder->expr()->eq('a.company', 'b.uid') ); + $queryBuilder + ->getRestrictions() + ->removeAll() + ->add(GeneralUtility::makeInstance(DeletedRestriction::class)) + ->add(GeneralUtility::makeInstance(FrontendRestrictionContainer::class)); + if ($filters['filterCountry'] !== '0' && $filters['filterCountry'] !== NULL) { $statement->andWhere( $queryBuilder->expr()->eq(