mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
if company gateway set to zero, disable gateways for client
This commit is contained in:
parent
021b741e56
commit
089f50e7ed
@ -460,7 +460,8 @@ class Client extends BaseModel implements HasLocalePreference
|
||||
|
||||
$company_gateways = $this->getSetting('company_gateway_ids');
|
||||
|
||||
if ($company_gateways) {
|
||||
if ($company_gateways || $company_gateways == "0") {
|
||||
|
||||
$transformed_ids = $this->transformKeys(explode(",", $company_gateways));
|
||||
$gateways = $this->company
|
||||
->company_gateways
|
||||
|
Loading…
x
Reference in New Issue
Block a user