mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -111,8 +111,9 @@ class CustomFieldLongChoice extends AbstractCustomField
|
||||
}
|
||||
|
||||
return $builder->add(self::KEY, ChoiceType::class, array(
|
||||
'choices' => $choices,
|
||||
'label' => 'Options key'
|
||||
'choices' => array_combine(array_values($choices),array_keys($choices)),
|
||||
'label' => 'Options key',
|
||||
'choices_as_values' => true
|
||||
));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user