Rename title in civility
authorRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:31:23 +0000 (00:31 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 23 Feb 2021 23:31:23 +0000 (00:31 +0100)
Form/ApplicationType.php

index 52356f1eb9c7c10d9c136445e2362a0fd7f4e0aa..6953e8e329587a2dca7b1a473ab1e94d9b06e60d 100644 (file)
@@ -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]);
                }