X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/1b24cfa05c059a98376c1be397fc3f6c0df47fd1..d051ce7122f72007727a1040702c8bd7717a4a64:/Form/ApplicationType.php diff --git a/Form/ApplicationType.php b/Form/ApplicationType.php index 52356f1..6953e8e 100644 --- a/Form/ApplicationType.php +++ b/Form/ApplicationType.php @@ -46,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]); }