Skip to content

Commit

Permalink
The switch button "Show to customer" is always On
Browse files Browse the repository at this point in the history
In the interface of "Offline Payments" the radio button is always On even if the "customer" attribute is 1.
  • Loading branch information
enimiste committed Jan 2, 2019
1 parent bc9fbfb commit 9285961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/OfflinePayment/Resources/views/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9285961

Please sign in to comment.