mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for currency id insertion in new client (#3413)
This commit is contained in:
parent
2085fa38dc
commit
a3e960cbba
@ -81,7 +81,7 @@ class StoreClientRequest extends Request
|
||||
$input['group_settings_id'] = $this->decodePrimaryKey($input['group_settings_id']);
|
||||
}
|
||||
|
||||
if(empty($input['settings']->currency_id))
|
||||
if(empty($input['settings']) || empty($input['settings']->currency_id))
|
||||
{
|
||||
if(empty($input['group_settings_id']))
|
||||
{
|
||||
|
@ -183,7 +183,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
|
||||
public function company_user()
|
||||
{
|
||||
if (!$this->id) {
|
||||
if (!$this->id && auth()->user()) {
|
||||
$this->id = auth()->user()->id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user