Merge branch 'Xbird/AllowSpaceInPhoneNumbers' into 'main'
Allow space in phone field form See merge request gamexperience/vision!38
This commit is contained in:
@@ -13,7 +13,7 @@ class PhoneType extends AbstractType
|
|||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
'constraints' => [
|
'constraints' => [
|
||||||
new Regex('/^[0-9]*$/', 'form_constraint_digit_only')
|
new Regex('/^[0-9 ]*$/', 'form_constraint_digit_only')
|
||||||
],
|
],
|
||||||
'attr' => ['placeholder' => 'form_placeholder_phone'],
|
'attr' => ['placeholder' => 'form_placeholder_phone'],
|
||||||
'help' => 'form_help_phone',
|
'help' => 'form_help_phone',
|
||||||
|
|||||||
Reference in New Issue
Block a user