From 7c562ee58c5ac4f829426cf9909a9e214f1e7c11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 00:32:40 +0100 Subject: [PATCH 1/1] Revert to phone only extra field --- Form/RegisterType.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Form/RegisterType.php b/Form/RegisterType.php index 83c80b5..d34fc0a 100644 --- a/Form/RegisterType.php +++ b/Form/RegisterType.php @@ -13,10 +13,7 @@ class RegisterType extends \Rapsys\UserBundle\Form\RegisterType { */ public function buildForm(FormBuilderInterface $builder, array $options) { return parent::buildForm($builder, $options) - #TODO: add url ? add text ? - ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'constraints' => [new NotBlank(['message' => 'Please provide your phone'])]]) - ->add('donation', UrlType::class, ['attr' => ['placeholder' => 'Your donation link']]) - ->add('site', UrlType::class, ['attr' => ['placeholder' => 'Your website']]); + ->add('phone', TelType::class, ['attr' => ['placeholder' => 'Your phone'], 'required' => false]); } /** -- 2.41.1