From d2aa2eb83a6288addd1ee328a223505e5cec52cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 00:31:23 +0100 Subject: [PATCH 1/1] Rename title in civility --- Form/ApplicationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } -- 2.41.1