From ec8daf83a1c8c920d13e5b987d94b1a6d9b7b870 Mon Sep 17 00:00:00 2001 From: Gwildor Sok Date: Wed, 6 Mar 2024 13:54:11 +0100 Subject: [PATCH] [143] Make middle name not required on signup --- src/Form/MembershipApplicationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/MembershipApplicationType.php b/src/Form/MembershipApplicationType.php index cbc3aee..a094d2c 100644 --- a/src/Form/MembershipApplicationType.php +++ b/src/Form/MembershipApplicationType.php @@ -19,7 +19,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('firstName', null, ['label' => 'Voornaam', 'error_bubbling' => true, 'constraints' => [new NotBlank()]]); if ($options['use_middle_name']) { - $builder->add('middleName', null, ['label' => 'Tussenvoegsel', 'error_bubbling' => true]); + $builder->add('middleName', null, ['label' => 'Tussenvoegsel', 'error_bubbling' => true, 'required' => false]); } $builder