diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php index 4f8c6f0ef..ccbd21da1 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php @@ -64,7 +64,7 @@ class ReferrerScopeAggregator implements AggregatorInterface $qb->expr()->lte($userHistory . '.startDate', ':' . $dateCalc), $qb->expr()->orX( $qb->expr()->isNull($userHistory . '.endDate'), - $qb->expr()->lt($userHistory . '.endDate', ':' . $dateCalc) + $qb->expr()->gt($userHistory . '.endDate', ':' . $dateCalc) ) ) )