From 089f50e7edae23c0b82106edbd5f6d259c15d92f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 19 Aug 2020 08:46:27 +1000 Subject: [PATCH] if company gateway set to zero, disable gateways for client --- app/Models/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index e68f50a9a901..2cd5f0250626 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -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