Fixed: [export][Agreggator by type] handle correctly case when an acp or an activity does not have any location type

This commit is contained in:
2023-01-11 16:55:03 +01:00
parent c05d153029
commit 91494c07d5
2 changed files with 11 additions and 3 deletions

View File

@@ -65,11 +65,13 @@ class LocationTypeAggregator implements AggregatorInterface
return 'Accepted locationtype';
}
if (null === $value) {
if (null === $value || '' === $value) {
return '';
}
$lt = $this->locationTypeRepository->find($value);
if (null === $lt = $this->locationTypeRepository->find($value)) {
return '';
}
return $this->translatableStringHelper->localize(
$lt->getTitle()