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.
This commit is contained in:
Enimiste 2019-01-02 12:19:01 +01:00 committed by GitHub
parent bc9fbfb3fb
commit 9285961392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@
$('input[name="name"]').val(json['data']['name']); $('input[name="name"]').val(json['data']['name']);
$('input[name="code"]').val(json['data']['code']); $('input[name="code"]').val(json['data']['code']);
if (json['data']['customer']) { if (json['data']['customer'] == 1) {
$('#customer_1 input').trigger('click'); $('#customer_1 input').trigger('click');
} else { } else {
$('#customer_0 input').trigger('click'); $('#customer_0 input').trigger('click');