Skip to content

Commit

Permalink
Revert back fieldType in form validation subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Nov 17, 2020
1 parent 6baec83 commit 07aae59
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Mautic\CoreBundle\Helper\CoreParametersHelper;
use Mautic\FormBundle\Event as Events;
use Mautic\FormBundle\Form\Type\FormFieldEmailType;
use Mautic\FormBundle\Form\Type\FormFieldTelType;
use Mautic\FormBundle\FormEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Translation\TranslatorInterface;
Expand Down Expand Up @@ -60,8 +61,8 @@ public function onFormBuilder(Events\FormBuilderEvent $event)
'phone.validation',
[
'eventName' => FormEvents::ON_FORM_VALIDATE,
'fieldType' => TelType::class,
'formType' => \Mautic\FormBundle\Form\Type\FormFieldTelType::class,
'fieldType' => 'tel',
'formType' => FormFieldTelType::class,
]
);

Expand Down

0 comments on commit 07aae59

Please sign in to comment.