if company gateway set to zero, disable gateways for client

This commit is contained in:
David Bomba 2020-08-19 08:46:27 +10:00
parent 021b741e56
commit 089f50e7ed

View File

@ -460,7 +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) { if ($company_gateways || $company_gateways == "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