mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix sf4 deprecated: remove choices_as_values form option
This commit is contained in:
parent
05868b398e
commit
1d8f72bc14
@ -81,7 +81,6 @@ class CountryOfBirthAggregator implements AggregatorInterface,
|
||||
'Group by continents' => 'continent',
|
||||
'Group by country' => 'country'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'expanded' => true,
|
||||
'multiple' => false
|
||||
));
|
||||
|
@ -80,7 +80,6 @@ class NationalityAggregator implements AggregatorInterface,
|
||||
'Group by continents' => 'continent',
|
||||
'Group by country' => 'country'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'expanded' => true,
|
||||
'multiple' => false
|
||||
));
|
||||
|
@ -98,7 +98,6 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface
|
||||
'multiple' => true,
|
||||
'expanded' => true,
|
||||
'choices' => $choices,
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Fields to include in export',
|
||||
'choice_attr' => function($val, $key, $index) {
|
||||
// add a 'data-display-target' for address fields
|
||||
|
@ -66,7 +66,6 @@ class GenderFilter implements FilterInterface,
|
||||
'Both' => Person::BOTH_GENDER,
|
||||
'Not given' => 'null'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'multiple' => true,
|
||||
'expanded' => true
|
||||
));
|
||||
|
@ -29,7 +29,6 @@ class GenderType extends AbstractType {
|
||||
|
||||
$resolver->setDefaults(array(
|
||||
'choices' => $a,
|
||||
'choices_as_values' => true,
|
||||
'expanded' => true,
|
||||
'multiple' => false,
|
||||
'placeholder' => null
|
||||
|
@ -333,7 +333,6 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
|
||||
'Man' => Person::MALE_GENDER,
|
||||
'Woman' => Person::FEMALE_GENDER
|
||||
],
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Gender',
|
||||
'required' => false
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user