diff --git a/Form/CustomFieldsGroupType.php b/Form/CustomFieldsGroupType.php index 1dd35a16e..2cd4eff2a 100644 --- a/Form/CustomFieldsGroupType.php +++ b/Form/CustomFieldsGroupType.php @@ -39,7 +39,7 @@ class CustomFieldsGroupType extends AbstractType } $builder - ->add('name') + ->add('name', 'translatable_string') ->add('entity', 'choice', array( 'choices' => $customizableEntites )) diff --git a/Resources/views/CustomFieldsGroup/show.html.twig b/Resources/views/CustomFieldsGroup/show.html.twig index 489fc6590..60897345a 100644 --- a/Resources/views/CustomFieldsGroup/show.html.twig +++ b/Resources/views/CustomFieldsGroup/show.html.twig @@ -11,7 +11,7 @@ Name - {{ entity.name }} + {{ entity.getName(app.request.locale) }} Entity