1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-24 10:21:35 +02:00

Merge pull request #7217 from turbo124/v5-stable

Minor Fixes
This commit is contained in:
David Bomba 2022-02-17 19:39:32 +11:00 committed by GitHub
commit 685843bb75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,13 @@
$gateway_instance = $gateway instanceof \App\Models\CompanyGateway ? $gateway : $gateway->company_gateway; $gateway_instance = $gateway instanceof \App\Models\CompanyGateway ? $gateway : $gateway->company_gateway;
$token_billing = true; $token_billing = true;
$token_billing_string = 'true';
$checked_on = ''; $checked_on = '';
$checked_off = 'checked'; $checked_off = 'checked';
if($gateway_instance->token_billing == 'off' || $gateway_instance->token_billing == 'always'){ if($gateway_instance->token_billing == 'off' || $gateway_instance->token_billing == 'always'){
$token_billing = false; $token_billing = false;
$token_billing_string = 'false';
} }
if($gateway_instance->token_billing == 'optout' || $gateway_instance->token_billing == 'always'){ if($gateway_instance->token_billing == 'optout' || $gateway_instance->token_billing == 'always'){
@ -44,6 +46,6 @@
<input type="radio" class="form-radio cursor-pointer hidden" style="display: none !important;" <input type="radio" class="form-radio cursor-pointer hidden" style="display: none !important;"
name="token-billing-checkbox" name="token-billing-checkbox"
id="proxy_is_default" id="proxy_is_default"
value="true" checked hidden disabled/> value="{{ $token_billing_string }}" checked hidden disabled/>
</div> </div>
@endif @endif