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
b2b637b4db
commit
5f8037433d
@ -148,7 +148,6 @@ class ActivityReasonAggregator implements AggregatorInterface,
|
||||
'By reason' => 'reasons',
|
||||
'By category of reason' => 'categories'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'multiple' => false,
|
||||
'expanded' => true,
|
||||
'label' => 'Reason\'s level'
|
||||
|
@ -99,7 +99,6 @@ 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) {
|
||||
|
@ -84,7 +84,6 @@ class ActivityType extends AbstractType
|
||||
$durationTimeTransformer = new DateTimeToTimestampTransformer('GMT', 'GMT');
|
||||
$durationTimeOptions = array(
|
||||
'choices' => $timeChoices,
|
||||
'choices_as_values' => true,
|
||||
'placeholder' => 'Choose the duration',
|
||||
);
|
||||
|
||||
@ -100,7 +99,6 @@ class ActivityType extends AbstractType
|
||||
->add('attendee', ChoiceType::class, array(
|
||||
'expanded' => true,
|
||||
'required' => false,
|
||||
'choices_as_values' => true,
|
||||
'choices' => array(
|
||||
'present' => true,
|
||||
'not present' => false
|
||||
|
@ -23,7 +23,6 @@ class ActivityTypeType extends AbstractType
|
||||
'Yes' => true,
|
||||
'No' => false
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'expanded' => true
|
||||
));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user