diff --git a/packages/form/src/Field/Concern/ListOptionsTrait.php b/packages/form/src/Field/Concern/ListOptionsTrait.php index 4d3669a1c..5a0a9350e 100644 --- a/packages/form/src/Field/Concern/ListOptionsTrait.php +++ b/packages/form/src/Field/Concern/ListOptionsTrait.php @@ -142,7 +142,7 @@ public function registerFromEnums(iterable|string $enums, ?LanguageInterface $la foreach ($enums as $enum) { if ($enum instanceof EnumTranslatableInterface) { - $options[$enum->getValue()] = $enum->getTitle($lang); + $options[$enum->getValue()] = $enum->getTitle($lang) ?: $enum->getKey(); } elseif ($enum instanceof Enum) { $options[$enum->getValue()] = $enum->getKey(); } elseif ($enum instanceof \UnitEnum) {