Skip to content

Commit fffec83

Browse files
authored
[Maintenance] Fix invalid PaymentMethod form labels (Sylius#403)
| Q | A | --------------- | ----- | Branch? | 1.7 | Bug fix? | yes | New feature? | no | Related tickets | -
2 parents a8a9cee + 2cfbf13 commit fffec83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Form/Type/PayPalConfigurationType.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3434
$originalData = [];
3535

3636
$builder
37-
->add('client_id', TextType::class, ['label' => 'sylius_paypal.client_id', 'attr' => ['readonly' => true]])
38-
->add('client_secret', TextType::class, ['label' => 'sylius_paypal.client_secret', 'attr' => ['readonly' => true]])
39-
->add('merchant_id', HiddenType::class, ['label' => 'sylius_paypal.client_secret', 'attr' => ['readonly' => true]])
40-
->add('sylius_merchant_id', HiddenType::class, ['label' => 'sylius_paypal.client_secret', 'attr' => ['readonly' => true]])
41-
->add('partner_attribution_id', HiddenType::class, ['label' => 'sylius_paypal.partner_attribution_id', 'attr' => ['readonly' => true]])
37+
->add('client_id', TextType::class, ['label' => 'sylius.pay_pal.client_id', 'attr' => ['readonly' => true]])
38+
->add('client_secret', TextType::class, ['label' => 'sylius.pay_pal.client_secret', 'attr' => ['readonly' => true]])
39+
->add('merchant_id', HiddenType::class, ['attr' => ['readonly' => true]])
40+
->add('sylius_merchant_id', HiddenType::class, ['attr' => ['readonly' => true]])
41+
->add('partner_attribution_id', HiddenType::class, ['attr' => ['readonly' => true]])
4242
// we need to force Sylius Payum integration to postpone creating an order, it's the easiest way
4343
->add('use_authorize', HiddenType::class, ['data' => true, 'attr' => ['readonly' => true]])
44-
->add('reports_sftp_username', TextType::class, ['label' => 'sylius_paypal.sftp_username', 'required' => false])
45-
->add('reports_sftp_password', TextType::class, ['label' => 'sylius_paypal.sftp_password', 'required' => false])
44+
->add('reports_sftp_username', TextType::class, ['label' => 'sylius.pay_pal.sftp_username', 'required' => false])
45+
->add('reports_sftp_password', TextType::class, ['label' => 'sylius.pay_pal.sftp_password', 'required' => false])
4646
;
4747

4848
$builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use (&$originalData): void {

0 commit comments

Comments
 (0)