X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/5d0c9aa3e87cd21b6797ec68fb4fdfa91173a3aa..275e23890d239d0c88f74f58b1c396429804f771:/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]); }