mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -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);
|
$client->settings = $client->saveSettings($data['settings'], $client);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $client->country_id) {
|
if (! $client->country_id || $client->country_id == 0) {
|
||||||
/** @var \App\Models\Company $company **/
|
/** @var \App\Models\Company $company **/
|
||||||
$company = Company::find($client->company_id);
|
$company = Company::find($client->company_id);
|
||||||
$client->country_id = $company->settings->country_id;
|
$client->country_id = $company->settings->country_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user