Commit 68febabd authored by Julien Minet's avatar Julien Minet

fix deprecations: empty_value -> placeholder for choice

parent 4d65e1c9
Pipeline #46081 failed with stages
in 5 minutes and 34 seconds
......@@ -27,14 +27,16 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Chill\MainBundle\Form\Type\CenterType;
use Chill\PersonBundle\Form\Type\GenderType;
use Chill\MainBundle\Form\Type\DataTransformer\CenterTransformer;
use Chill\PersonBundle\Form\CreationPersonType;
class CreationPersonType extends AbstractType
{
const NAME = 'chill_personbundle_person_creation';
const NAME = CreationPersonType::class;
const FORM_NOT_REVIEWED = 'not_reviewed';
const FORM_REVIEWED = 'reviewed' ;
......@@ -89,7 +91,7 @@ class CreationPersonType extends AbstractType
->add('birthdate', DateType::class, array('required' => false,
'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
->add('gender', GenderType::class, array(
'required' => true, 'empty_value' => null
'required' => true, 'placeholder' => null
))
->add('creation_date', DateType::class, array(
'required' => true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment