improvement on import - person may have a null gender

This commit is contained in:
2018-10-05 22:54:30 +02:00
parent b5a9105a0f
commit cf2408be1b
8 changed files with 338 additions and 30 deletions

View File

@@ -83,6 +83,10 @@ class GenderAggregator implements AggregatorInterface
return $this->translator->trans('woman');
case Person::MALE_GENDER :
return $this->translator->trans('man');
case Person::BOTH_GENDER:
return $this->translator->trans('both');
case null:
return $this->translator->trans('Not given');
case '_header' :
return $this->translator->trans('Gender');
default: