firstname added to onthefly for child or contact

This commit is contained in:
2022-03-14 11:48:39 +01:00
parent f44f9d356b
commit 09e6872724
5 changed files with 21 additions and 4 deletions

View File

@@ -77,7 +77,9 @@ class ThirdPartyRender extends AbstractChillEntityRender
$acronym = '';
}
return $civility . $entity->getName() . $acronym;
$firstname = empty($entity->getFirstname()) ? '' : $entity->getFirstname();
return $civility . $firstname . ' ' . $entity->getName() . $acronym;
}
public function supports($entity, array $options): bool