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

[TASK] Fixing a bug with the teasers

parent 471dc8a3
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
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