Fixes for gateway id

This commit is contained in:
David Bomba 2024-09-24 09:15:22 +10:00
parent 16d716230b
commit ae31a457da

View File

@ -66,8 +66,9 @@ class Settings
default => $type = self::GATEWAY_CBA, default => $type = self::GATEWAY_CBA,
}; };
if($type == self::GATEWAY_CBA) if($type == self::GATEWAY_CBA && strlen($this->powerboard->company_gateway->getConfigField('gatewayId') ?? '') > 1){
return $this->powerboard->company_gateway->getConfigField('gatewayId') ?? $this->getGatewayByType($type); return $this->powerboard->company_gateway->getConfigField('gatewayId');
}
return $this->getGatewayByType($type); return $this->getGatewayByType($type);