mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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 continents' => 'continent',
|
||||||
'Group by country' => 'country'
|
'Group by country' => 'country'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false
|
'multiple' => false
|
||||||
));
|
));
|
||||||
|
@ -80,7 +80,6 @@ class NationalityAggregator implements AggregatorInterface,
|
|||||||
'Group by continents' => 'continent',
|
'Group by continents' => 'continent',
|
||||||
'Group by country' => 'country'
|
'Group by country' => 'country'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false
|
'multiple' => false
|
||||||
));
|
));
|
||||||
|
@ -98,7 +98,6 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface
|
|||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'choices' => $choices,
|
'choices' => $choices,
|
||||||
'choices_as_values' => true,
|
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'choice_attr' => function($val, $key, $index) {
|
'choice_attr' => function($val, $key, $index) {
|
||||||
// add a 'data-display-target' for address fields
|
// add a 'data-display-target' for address fields
|
||||||
|
@ -66,7 +66,6 @@ class GenderFilter implements FilterInterface,
|
|||||||
'Both' => Person::BOTH_GENDER,
|
'Both' => Person::BOTH_GENDER,
|
||||||
'Not given' => 'null'
|
'Not given' => 'null'
|
||||||
),
|
),
|
||||||
'choices_as_values' => true,
|
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true
|
'expanded' => true
|
||||||
));
|
));
|
||||||
|
@ -29,7 +29,6 @@ class GenderType extends AbstractType {
|
|||||||
|
|
||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'choices' => $a,
|
'choices' => $a,
|
||||||
'choices_as_values' => true,
|
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'placeholder' => null
|
'placeholder' => null
|
||||||
|
@ -333,7 +333,6 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
|
|||||||
'Man' => Person::MALE_GENDER,
|
'Man' => Person::MALE_GENDER,
|
||||||
'Woman' => Person::FEMALE_GENDER
|
'Woman' => Person::FEMALE_GENDER
|
||||||
],
|
],
|
||||||
'choices_as_values' => true,
|
|
||||||
'label' => 'Gender',
|
'label' => 'Gender',
|
||||||
'required' => false
|
'required' => false
|
||||||
])
|
])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user