mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -254,7 +254,8 @@ class CustomFieldsGroupController extends Controller
|
||||
'csrf_protection' => false
|
||||
))
|
||||
->add('type', ChoiceType::class, array(
|
||||
'choices' => $fieldChoices
|
||||
'choices' => array_combine(array_values($fieldChoices),array_keys($fieldChoices)),
|
||||
'choices_as_values' => true
|
||||
))
|
||||
->add('customFieldsGroup', HiddenType::class)
|
||||
->add('submit', SubmitType::class);
|
||||
|
Reference in New Issue
Block a user