From 45515837a35338020b886a89b9bd85eae1b187fb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 25 Jan 2024 14:40:06 +1100 Subject: [PATCH] Adjustments for client country_id --- app/Repositories/ClientRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/ClientRepository.php b/app/Repositories/ClientRepository.php index d457eeefcd32..f7ec59ce7fba 100644 --- a/app/Repositories/ClientRepository.php +++ b/app/Repositories/ClientRepository.php @@ -70,7 +70,7 @@ class ClientRepository extends BaseRepository $client->settings = $client->saveSettings($data['settings'], $client); } - if (! $client->country_id) { + if (! $client->country_id || $client->country_id == 0) { /** @var \App\Models\Company $company **/ $company = Company::find($client->company_id); $client->country_id = $company->settings->country_id;