mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix deprecations: set 'choices_as_values=true' as a default option of Select2ChoiceType class
This commit is contained in:
parent
38bb5da406
commit
3ea3beb1d5
@ -44,7 +44,9 @@ class Select2ChoiceType extends AbstractType
|
|||||||
public function configureOptions(OptionsResolver $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
{
|
{
|
||||||
$resolver->setDefaults(
|
$resolver->setDefaults(
|
||||||
array('attr' => array('class' => 'select2 '))
|
array(
|
||||||
);
|
'attr' => array('class' => 'select2 '),
|
||||||
|
'choices_as_values' => true
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user