From 71be5510624e257aa16287735d97439cbfe3e30b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 19 Aug 2020 08:47:05 +1000 Subject: [PATCH] Fixes for disabling client gateways --- app/Models/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index 2cd5f0250626..ecead74d77f3 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -460,8 +460,8 @@ class Client extends BaseModel implements HasLocalePreference $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)); $gateways = $this->company ->company_gateways