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(