mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -124,8 +124,9 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
'expanded' => true,
|
||||
'multiple' => false,
|
||||
'choices' => array(
|
||||
'1' => 'Multiple',
|
||||
'0' => 'Unique'),
|
||||
'Multiple' => '1',
|
||||
'Unique' => '0'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'label' => 'Multiplicity'
|
||||
))
|
||||
@@ -133,16 +134,18 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
'expanded' => true,
|
||||
'multiple' => false,
|
||||
'choices' => array(
|
||||
'1' => 'Expanded',
|
||||
'0' => 'Non expanded'),
|
||||
'Expanded' => '1',
|
||||
'Non expanded' => '0'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'label' => 'Choice display'
|
||||
))
|
||||
->add(self::ALLOW_OTHER, ChoiceType::class, array(
|
||||
'label' => 'Allow other',
|
||||
'choices' => array(
|
||||
'0' => 'No',
|
||||
'1' => 'Yes'),
|
||||
'No' => '0',
|
||||
'Yes' => '1'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'expanded' => true,
|
||||
'multiple' => false
|
||||
|
Reference in New Issue
Block a user