mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 07:44:35 -04:00
Fixes for client contact country on registration
This commit is contained in:
parent
154f029a84
commit
a41468816e
@ -71,14 +71,12 @@ class ContactRegisterController extends Controller
|
|||||||
$client->number = $this->getNextClientNumber($client);
|
$client->number = $this->getNextClientNumber($client);
|
||||||
$client->save();
|
$client->save();
|
||||||
|
|
||||||
if(!$client->country_id && strlen($client->company->settings->country_id) > 1){
|
if(!array_key_exists('country_id', $data) && strlen($client->company->settings->country_id) > 1){
|
||||||
|
|
||||||
$client->update(['country_id' => $client->company->settings->country_id]);
|
$client->update(['country_id' => $client->company->settings->country_id]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// $this->getClientContact($data, $client);
|
|
||||||
|
|
||||||
return $client;
|
return $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user