From c05d153029a890b39c468c124d2019dc2948e6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 11 Jan 2023 16:47:11 +0100 Subject: [PATCH] Fixed: [export][acp][group by scope] Fixed bug when no referrer or no scope for a referrer --- .../AccompanyingCourseAggregators/ReferrerScopeAggregator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php index 62f8cdef2..4f8c6f0ef 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerScopeAggregator.php @@ -101,7 +101,7 @@ class ReferrerScopeAggregator implements AggregatorInterface return 'export.aggregator.course.by_user_scope.Referrer\'s scope'; } - if (null === $value) { + if (null === $value || '' === $value) { return ''; }