From de1eba424d49164bffa31438fb67189fa833c5d7 Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Mon, 18 Mar 2024 15:49:03 +0100 Subject: [PATCH] [FEATURE] Add domain selection in lead list Related: https://projekte.in2code.de/issues/62272 --- Classes/Controller/LeadController.php | 1 + .../Domain/Repository/VisitorRepository.php | 3 +++ .../Private/Partials/Filter/Lead/List.html | 23 +++++++++++++++++++ 3 files changed, 27 insertions(+) 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 @@
f:count()} > 0"> +
+ + + Domain + + + {domain} + + + + + + + + + + +
+ +