fix: accept the ISO-2 country codes when authoring a destination
This commit is contained in:
1 parent
169a17e19c
commit
5c7e702eab
3 files changed
+112
-9
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user