Set 'required' to false for Email field in UserGroupType form.

Changed the Email field's 'required' option to false, allowing it to be optional. This adjustment aims to improve the usability and flexibility of the UserGroupType form.
This commit is contained in:
Julien Fastré 2024-10-25 11:18:38 +02:00
parent 7df5a22b14
commit 182e2fc3af
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -39,6 +39,7 @@ class UserGroupType extends AbstractType
'label' => 'user_group.Email', 'label' => 'user_group.Email',
'help' => 'user_group.EmailHelp', 'help' => 'user_group.EmailHelp',
'empty_data' => '', 'empty_data' => '',
'required' => false,
]) ])
->add('excludeKey', TextType::class, [ ->add('excludeKey', TextType::class, [
'label' => 'user_group.ExcludeKey', 'label' => 'user_group.ExcludeKey',