mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 20:14:35 -04:00
Fixes for disabling client gateways
This commit is contained in:
parent
089f50e7ed
commit
71be551062
@ -460,8 +460,8 @@ class Client extends BaseModel implements HasLocalePreference
|
|||||||
|
|
||||||
$company_gateways = $this->getSetting('company_gateway_ids');
|
$company_gateways = $this->getSetting('company_gateway_ids');
|
||||||
|
|
||||||
if ($company_gateways || $company_gateways == "0") {
|
if ($company_gateways || $company_gateways == "0") { //we need to check for "0" here as we disable a payment gateway for a client with the number "0"
|
||||||
|
|
||||||
$transformed_ids = $this->transformKeys(explode(",", $company_gateways));
|
$transformed_ids = $this->transformKeys(explode(",", $company_gateways));
|
||||||
$gateways = $this->company
|
$gateways = $this->company
|
||||||
->company_gateways
|
->company_gateways
|
||||||
|
Loading…
x
Reference in New Issue
Block a user