mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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->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]);
|
||||
|
||||
}
|
||||
|
||||
// $this->getClientContact($data, $client);
|
||||
|
||||
return $client;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user