mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: add 'choices_as_values=true' to ChoiceType elements
This commit is contained in:
parent
7637954a8d
commit
6bf4f68f0d
@ -23,10 +23,13 @@ namespace Chill\ReportBundle\Controller;
|
|||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
|
use Symfony\Component\Security\Core\Role\Role;
|
||||||
|
|
||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use Chill\ReportBundle\Entity\Report;
|
use Chill\ReportBundle\Entity\Report;
|
||||||
use Chill\ReportBundle\Form\ReportType;
|
use Chill\ReportBundle\Form\ReportType;
|
||||||
use Symfony\Component\Security\Core\Role\Role;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Report controller.
|
* Report controller.
|
||||||
@ -133,8 +136,9 @@ class ReportController extends Controller
|
|||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'csrf_protection' => false
|
'csrf_protection' => false
|
||||||
))
|
))
|
||||||
->add('cFGroup', 'choice', array(
|
->add('cFGroup', ChoiceType::class, array(
|
||||||
'choices' => $cFGroupsChoice
|
'choices' => $cFGroupsChoice,
|
||||||
|
'choices_as_values' => true
|
||||||
))
|
))
|
||||||
->getForm();
|
->getForm();
|
||||||
|
|
||||||
@ -185,8 +189,9 @@ class ReportController extends Controller
|
|||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'csrf_protection' => false
|
'csrf_protection' => false
|
||||||
))
|
))
|
||||||
->add('cFGroup', 'choice', array(
|
->add('cFGroup', ChoiceType::class, array(
|
||||||
'choices' => $cFGroupsChoice
|
'choices' => $cFGroupsChoice,
|
||||||
|
'choices_as_values' => true
|
||||||
))
|
))
|
||||||
->getForm();
|
->getForm();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user