mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
parent
95f32a8fcb
commit
4143e773b6
@ -99,6 +99,7 @@ class ListActivity implements ListInterface
|
|||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'choices' => array_combine($this->fields, $this->fields),
|
'choices' => array_combine($this->fields, $this->fields),
|
||||||
|
'choices_as_values' => true,
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'constraints' => [new Callback(array(
|
'constraints' => [new Callback(array(
|
||||||
'callback' => function($selected, ExecutionContextInterface $context) {
|
'callback' => function($selected, ExecutionContextInterface $context) {
|
||||||
|
@ -102,9 +102,10 @@ class ActivityType extends AbstractType
|
|||||||
->add('attendee', ChoiceType::class, array(
|
->add('attendee', ChoiceType::class, array(
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
'choices_as_values' => true,
|
||||||
'choices' => array(
|
'choices' => array(
|
||||||
true => 'present',
|
'present' => true,
|
||||||
false => 'not present'
|
'not present' => false
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
->add('user')
|
->add('user')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user