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