From: Raphaƫl Gertz Date: Tue, 23 Feb 2021 23:31:23 +0000 (+0100) Subject: Rename title in civility X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/d2aa2eb83a6288addd1ee328a223505e5cec52cd Rename title in civility --- 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]); }