From 6857d92c4fd69dc4cfa99a74642e81de678df3f0 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sun, 3 Oct 2021 13:41:14 +0200 Subject: [PATCH] respect customer visibility in project-overview report (#2804) --- src/Project/ProjectStatisticService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Project/ProjectStatisticService.php b/src/Project/ProjectStatisticService.php index 700fef16..cec3bd58 100644 --- a/src/Project/ProjectStatisticService.php +++ b/src/Project/ProjectStatisticService.php @@ -133,7 +133,9 @@ class ProjectStatisticService $qb = $this->repository->createQueryBuilder('p'); $qb ->select('p') + ->leftJoin('p.customer', 'c') ->andWhere($qb->expr()->eq('p.visible', true)) + ->andWhere($qb->expr()->eq('c.visible', true)) ->andWhere( $qb->expr()->andX( $qb->expr()->orX(