From e6a1dcd7a4f7070da2f65a679a3fdcfe2e4fa838 Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 20 Apr 2018 14:48:34 +0200 Subject: [PATCH] fix error: no need to flip choices for formatter type. --- Form/Type/Export/PickFormatterType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form/Type/Export/PickFormatterType.php b/Form/Type/Export/PickFormatterType.php index 8ac039c34..88a0b7ba8 100644 --- a/Form/Type/Export/PickFormatterType.php +++ b/Form/Type/Export/PickFormatterType.php @@ -54,7 +54,7 @@ class PickFormatterType extends AbstractType } $builder->add('alias', ChoiceType::class, array( - 'choices' => array_combine(array_values($choices),array_keys($choices)), + 'choices' => $choices, 'choices_as_values' => true, 'multiple' => false ));