Commit 6380045e by Yvon

fix required attribute

parent 077b3610
...@@ -203,7 +203,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -203,7 +203,7 @@ class AdherentAdmin extends AbstractAdmin
'placeholder' => 'Choisir un moyen de paiement' 'placeholder' => 'Choisir un moyen de paiement'
]) ])
->add('jourPrelevement', ChoiceType::class, [ ->add('jourPrelevement', ChoiceType::class, [
'required' => true, 'required' => false,
'label' => 'Jour de prélèvement :', 'label' => 'Jour de prélèvement :',
'choices' => $this->daysOfMonth(), 'choices' => $this->daysOfMonth(),
'empty_data' => null, 'empty_data' => null,
...@@ -214,7 +214,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -214,7 +214,7 @@ class AdherentAdmin extends AbstractAdmin
'label' => 'Recevoir un rappel du paiement de ma cotisation par mail', 'label' => 'Recevoir un rappel du paiement de ma cotisation par mail',
]) ])
->add('jourMailRappelCotisation', ChoiceType::class, [ ->add('jourMailRappelCotisation', ChoiceType::class, [
'required' => true, 'required' => false,
'label' => 'Jour de l\'envoi du mail de rappel :', 'label' => 'Jour de l\'envoi du mail de rappel :',
'choices' => $this->daysOfMonth(), 'choices' => $this->daysOfMonth(),
'empty_data' => null, 'empty_data' => null,
......
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