mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Adjustments for client country_id
This commit is contained in:
parent
976d1f9f1a
commit
45515837a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user