diff --git a/Classes/Controller/LeadController.php b/Classes/Controller/LeadController.php index 014b0dbb..ca93b25a 100644 --- a/Classes/Controller/LeadController.php +++ b/Classes/Controller/LeadController.php @@ -116,6 +116,7 @@ public function listAction(FilterDto $filter, string $export = ''): void 'filter' => $filter, 'allVisitors' => $this->visitorRepository->findAllWithIdentifiedFirst($filter), 'luxCategories' => $this->categoryRepository->findAllLuxCategories(), + 'domains' => $this->pagevisitsRepository->getAllDomains($filter), ]); } diff --git a/Classes/Domain/Repository/VisitorRepository.php b/Classes/Domain/Repository/VisitorRepository.php index 0cec737b..09ca355e 100644 --- a/Classes/Domain/Repository/VisitorRepository.php +++ b/Classes/Domain/Repository/VisitorRepository.php @@ -579,6 +579,9 @@ protected function extendLogicalAndWithFilterConstraintsForCrdate( $logicalAnd[] = $query->equals('categoryscorings.category', $filter->getCategoryScoring()); $logicalAnd[] = $query->greaterThan('categoryscorings.scoring', 0); } + if ($filter->getDomain() !== '') { + $logicalAnd[] = $query->equals('pagevisits.domain', $filter->getDomain()); + } return $logicalAnd; } diff --git a/Resources/Private/Partials/Filter/Lead/List.html b/Resources/Private/Partials/Filter/Lead/List.html index c80aaf6a..fd04fd90 100644 --- a/Resources/Private/Partials/Filter/Lead/List.html +++ b/Resources/Private/Partials/Filter/Lead/List.html @@ -124,6 +124,29 @@