diff --git a/Classes/Domain/Repository/ProjectRepository.php b/Classes/Domain/Repository/ProjectRepository.php index 8078848..b44dcd1 100644 --- a/Classes/Domain/Repository/ProjectRepository.php +++ b/Classes/Domain/Repository/ProjectRepository.php @@ -26,6 +26,12 @@ public function findByFilter( $query = $this->createQuery(); $constraints = []; + + if ($selected && !empty($pages)) { + $query->getQuerySettings()->setRespectStoragePage(false); + $constraints[] = $query->in('uid', $pages); + } + $constraints[] = $query->equals('doktype', Page::TYPE_ACEDEMIC_PROJECT); if ($filter) { @@ -37,9 +43,6 @@ public function findByFilter( } } } - if ($selected && !empty($pages)) { - $constraints[] = $query->in('uid', $pages); - } if ($hideCompletedProjects) { $constraints[] = $query->logicalOr(