mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
fix deprecations: use fqcn instead of 'choices'
This commit is contained in:
@@ -6,6 +6,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Doctrine\ORM\Query;
|
||||
|
||||
use Chill\CustomFieldsBundle\Entity\CustomFieldsGroup;
|
||||
@@ -252,7 +253,7 @@ class CustomFieldsGroupController extends Controller
|
||||
'action' => $this->generateUrl('customfield_new'),
|
||||
'csrf_protection' => false
|
||||
))
|
||||
->add('type', 'choice', array(
|
||||
->add('type', ChoiceType::class, array(
|
||||
'choices' => $fieldChoices
|
||||
))
|
||||
->add('customFieldsGroup', HiddenType::class)
|
||||
|
Reference in New Issue
Block a user