Skip to content

Commit

Permalink
Output any available name translation, if the translation does not ex…
Browse files Browse the repository at this point in the history
…ist for target language
  • Loading branch information
hknezevic committed Jan 22, 2025
1 parent 8725486 commit e8987dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/Form/Type/FieldType/EnhancedSelectionFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit e8987dd

Please sign in to comment.