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
59bf662886
commit
a38208f5cf
@ -259,7 +259,6 @@ class CustomFieldsGroupController extends Controller
|
||||
))
|
||||
->add('type', ChoiceType::class, array(
|
||||
'choices' => array_combine(array_values($fieldChoices),array_keys($fieldChoices)),
|
||||
'choices_as_values' => true
|
||||
))
|
||||
->add('customFieldsGroup', HiddenType::class)
|
||||
->add('submit', SubmitType::class);
|
||||
|
@ -130,7 +130,6 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
'choices' => array(
|
||||
'Multiple' => '1',
|
||||
'Unique' => '0'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'label' => 'Multiplicity'
|
||||
))
|
||||
@ -140,7 +139,6 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
'choices' => array(
|
||||
'Expanded' => '1',
|
||||
'Non expanded' => '0'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'label' => 'Choice display'
|
||||
))
|
||||
@ -149,7 +147,6 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
'choices' => array(
|
||||
'No' => '0',
|
||||
'Yes' => '1'),
|
||||
'choices_as_values' => true,
|
||||
'empty_data' => '0',
|
||||
'expanded' => true,
|
||||
'multiple' => false
|
||||
|
@ -82,7 +82,6 @@ class CustomFieldLongChoice extends AbstractCustomField
|
||||
}
|
||||
return $key->getId();
|
||||
},
|
||||
'choices_as_values' => true,
|
||||
'multiple' => false,
|
||||
'expanded' => false,
|
||||
'required' => $customField->isRequired(),
|
||||
@ -113,7 +112,6 @@ class CustomFieldLongChoice extends AbstractCustomField
|
||||
return $builder->add(self::KEY, ChoiceType::class, array(
|
||||
'choices' => array_combine(array_values($choices),array_keys($choices)),
|
||||
'label' => 'Options key',
|
||||
'choices_as_values' => true
|
||||
));
|
||||
|
||||
}
|
||||
|
@ -130,7 +130,6 @@ class CustomFieldText extends AbstractCustomField
|
||||
'Multiple boxes on the line' => '1',
|
||||
'One box on the line' => '0'
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
'label' => 'Box appearance',
|
||||
'expanded' => True
|
||||
))
|
||||
|
@ -109,7 +109,6 @@ class CustomFieldTitle extends AbstractCustomField
|
||||
'Subtitle' => self::TYPE_SUBTITLE
|
||||
),
|
||||
'label' => 'Title level',
|
||||
'choices_as_values' => true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -49,7 +49,6 @@ class CustomFieldsGroupType extends AbstractType
|
||||
->add('name', TranslatableStringFormType::class)
|
||||
->add('entity', ChoiceType::class, array(
|
||||
'choices' => array_combine(array_values($entities),array_keys($entities)),
|
||||
'choices_as_values' => true
|
||||
))
|
||||
;
|
||||
|
||||
|
@ -109,7 +109,6 @@ class LinkedCustomFieldsType extends AbstractType
|
||||
|
||||
$options = array_merge($this->options, array(
|
||||
'choices' => $choices,
|
||||
'choices_as_values' => true
|
||||
));
|
||||
|
||||
$event->getForm()->getParent()->add($this->choiceName, ChoiceType::class,
|
||||
|
Loading…
x
Reference in New Issue
Block a user