mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
fix sf4 deprecated: remove choices_as_values form option
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user