X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/adcb73ad5e459fa364ca74706fc9008e07c34d8d..adb2a9d2614632083ee9eeb7e1bc7c56bb68dbf6:/Form/ApplicationType.php diff --git a/Form/ApplicationType.php b/Form/ApplicationType.php index 8778fe9..6953e8e 100644 --- a/Form/ApplicationType.php +++ b/Form/ApplicationType.php @@ -8,7 +8,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\DateType; -use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Validator\Constraints\Date; use Symfony\Component\Validator\Constraints\NotBlank; @@ -47,7 +46,7 @@ class ApplicationType extends AbstractType { //Add extra user field if (!empty($options['admin'])) { - $users = $this->doctrine->getRepository(User::class)->findAllWithTranslatedGroupAndTitle($this->translator); + $users = $this->doctrine->getRepository(User::class)->findAllWithTranslatedGroupAndCivility($this->translator); $form->add('user', ChoiceType::class, ['attr' => ['placeholder' => 'Your user'], 'constraints' => [new NotBlank(['message' => 'Please provide your user'])], 'choices' => $users, 'data' => $options['user'], 'choice_translation_domain' => false]); }