fix: accept the ISO-2 country codes when authoring a destination

This commit is contained in:
fromme committed 2026-09-29 12:47:25 +02:00
1 parent 169a17e19c
commit 5c7e702eab
3 files changed
+112 -9

No files matched your search

+1 -8
View File
@@ -40,14 +40,7 @@ class DestinationType extends AbstractType
])
->add('country', ChoiceType::class, [
'label' => 'Land',
'choices' => [
'Österreich' => 'at',
'Schweiz' => 'ch',
'Frankreich' => 'fr',
'Italien' => 'it',
'Deutschland' => 'de',
'Niederlande' => 'nl',
],
'choices' => DestinationDto::COUNTRIES,
])
->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
$form = $event->getForm();