From 77089f98a77b571cb5d5c93960a02f36235754c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chru=C5=9Bciel?= Date: Thu, 31 Oct 2024 09:48:45 +0100 Subject: [PATCH] Do not throw exception on gateway edit and create --- src/Form/Type/TpayGatewayConfigurationType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Form/Type/TpayGatewayConfigurationType.php b/src/Form/Type/TpayGatewayConfigurationType.php index 59099980..0f15cbb9 100644 --- a/src/Form/Type/TpayGatewayConfigurationType.php +++ b/src/Form/Type/TpayGatewayConfigurationType.php @@ -38,6 +38,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'constraints' => [ new NotBlank(allowNull: false, groups: ['sylius']), ], + 'empty_data' => '', ], ) ->add( @@ -49,6 +50,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'constraints' => [ new NotBlank(allowNull: false, groups: ['sylius']), ], + 'empty_data' => '', ], ) ->add(