mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: use fcqn instead of 'choice'
This commit is contained in:
parent
def1b1c01f
commit
9951a5d765
@ -26,6 +26,7 @@ use Symfony\Component\Form\FormEvents;
|
|||||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||||
use Symfony\Component\Form\FormInterface;
|
use Symfony\Component\Form\FormInterface;
|
||||||
use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
|
use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This type create a Choice field with custom fields as choices.
|
* This type create a Choice field with custom fields as choices.
|
||||||
@ -111,7 +112,7 @@ class LinkedCustomFieldsType extends AbstractType
|
|||||||
'choice_list' => new SimpleChoiceList($choices),
|
'choice_list' => new SimpleChoiceList($choices),
|
||||||
));
|
));
|
||||||
|
|
||||||
$event->getForm()->getParent()->add($this->choiceName, 'choice',
|
$event->getForm()->getParent()->add($this->choiceName, ChoiceType::class,
|
||||||
$options);
|
$options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user