mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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,
|
||||
'expanded' => true,
|
||||
'choices' => array_combine($this->fields, $this->fields),
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Fields to include in export',
|
||||
'constraints' => [new Callback(array(
|
||||
'callback' => function($selected, ExecutionContextInterface $context) {
|
||||
|
@ -102,9 +102,10 @@ class ActivityType extends AbstractType
|
||||
->add('attendee', ChoiceType::class, array(
|
||||
'expanded' => true,
|
||||
'required' => false,
|
||||
'choices_as_values' => true,
|
||||
'choices' => array(
|
||||
true => 'present',
|
||||
false => 'not present'
|
||||
'present' => true,
|
||||
'not present' => false
|
||||
)
|
||||
))
|
||||
->add('user')
|
||||
|
Loading…
x
Reference in New Issue
Block a user