From 9285961392ce34e050c36cb58698a2e8b84bbcef Mon Sep 17 00:00:00 2001 From: Enimiste Date: Wed, 2 Jan 2019 12:19:01 +0100 Subject: [PATCH] The switch button "Show to customer" is always On In the interface of "Offline Payments" the radio button is always On even if the "customer" attribute is 1. --- modules/OfflinePayment/Resources/views/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/OfflinePayment/Resources/views/edit.blade.php b/modules/OfflinePayment/Resources/views/edit.blade.php index be5e0b6e2..a32954331 100644 --- a/modules/OfflinePayment/Resources/views/edit.blade.php +++ b/modules/OfflinePayment/Resources/views/edit.blade.php @@ -153,7 +153,7 @@ $('input[name="name"]').val(json['data']['name']); $('input[name="code"]').val(json['data']['code']); - if (json['data']['customer']) { + if (json['data']['customer'] == 1) { $('#customer_1 input').trigger('click'); } else { $('#customer_0 input').trigger('click');