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