From 89bdc76565aa80524d61b355102818b7895ec7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 22 Sep 2022 18:15:59 +0200 Subject: [PATCH] handle unknown in gender aggregator --- .../Export/Aggregator/PersonAggregators/GenderAggregator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/GenderAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/GenderAggregator.php index 0b94cbd4f..3cfadc355 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/GenderAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/PersonAggregators/GenderAggregator.php @@ -62,6 +62,9 @@ final class GenderAggregator implements AggregatorInterface case Person::BOTH_GENDER: return $this->translator->trans('both'); + case Person::NO_INFORMATION: + return $this->translator->trans('unknown'); + case null: return $this->translator->trans('Not given');