mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -124,9 +124,10 @@ class CustomFieldText extends AbstractCustomField
|
||||
->add(self::MAX_LENGTH, 'integer', array('empty_data' => 256))
|
||||
->add(self::MULTIPLE_CF_INLINE, ChoiceType::class, array(
|
||||
'choices' => array(
|
||||
'1' => 'Multiple boxes on the line',
|
||||
'0' => 'One box on the line'
|
||||
'Multiple boxes on the line' => '1',
|
||||
'One box on the line' => '0'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Box appearance',
|
||||
'expanded' => True
|
||||
))
|
||||
|
Reference in New Issue
Block a user