From 5f8037433d199d6546d2a463934cf1e046b35a30 Mon Sep 17 00:00:00 2001 From: Tchama Date: Wed, 22 Jul 2020 17:05:24 +0200 Subject: [PATCH] fix sf4 deprecated: remove choices_as_values form option --- Export/Aggregator/ActivityReasonAggregator.php | 1 - Export/Export/ListActivity.php | 1 - Form/ActivityType.php | 2 -- Form/ActivityTypeType.php | 1 - 4 files changed, 5 deletions(-) diff --git a/Export/Aggregator/ActivityReasonAggregator.php b/Export/Aggregator/ActivityReasonAggregator.php index 4cf422eec..6614caace 100644 --- a/Export/Aggregator/ActivityReasonAggregator.php +++ b/Export/Aggregator/ActivityReasonAggregator.php @@ -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' diff --git a/Export/Export/ListActivity.php b/Export/Export/ListActivity.php index e050518fc..6e5d7b0b8 100644 --- a/Export/Export/ListActivity.php +++ b/Export/Export/ListActivity.php @@ -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) { diff --git a/Form/ActivityType.php b/Form/ActivityType.php index 407ceaa70..8d1eef126 100644 --- a/Form/ActivityType.php +++ b/Form/ActivityType.php @@ -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 diff --git a/Form/ActivityTypeType.php b/Form/ActivityTypeType.php index b3d400bf8..a402f584c 100644 --- a/Form/ActivityTypeType.php +++ b/Form/ActivityTypeType.php @@ -23,7 +23,6 @@ class ActivityTypeType extends AbstractType 'Yes' => true, 'No' => false ), - 'choices_as_values' => true, 'expanded' => true )); }