From e8987dd23feb5ffeed90c3908d63a3f3954bae44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hrvoje=20Kne=C5=BEevi=C4=87?= Date: Wed, 22 Jan 2025 17:16:20 +0100 Subject: [PATCH] Output any available name translation, if the translation does not exist for target language --- bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php b/bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php index 3105ffc..57b3177 100644 --- a/bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php +++ b/bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php @@ -60,7 +60,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'identifiers', ChoiceType::class, [ - 'label' => $fieldDefinition->getName($languageCode), + 'label' => $fieldDefinition->getName($languageCode) ?? $fieldDefinition->getName(), 'choices' => $choices, 'multiple' => $fieldDefinition->fieldSettings['isMultiple'], 'expanded' => $fieldDefinition->fieldSettings['isExpanded'],