mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
activity: add user current location as default for a new activity
This commit is contained in:
@@ -29,7 +29,7 @@ class UserCurrentLocationType extends AbstractType
|
||||
'class' => Location::class,
|
||||
'choice_label' => function (Location $entity) {
|
||||
return $entity->getName() ?
|
||||
$entity->getName() :
|
||||
$entity->getLocationType()->getTitle()['fr'] . ' ' . $entity->getName() :
|
||||
//$this->translatableStringHelper->localize($entity->getLocationType()->getTitle()); //TODO does not work
|
||||
$entity->getLocationType()->getTitle()['fr'];
|
||||
},
|
||||
|
Reference in New Issue
Block a user