mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:04:30 -04:00
Resolve user correctly
This commit is contained in:
parent
2761bc1c7f
commit
27a7882c09
@ -573,7 +573,7 @@ class CSVImport implements ShouldQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function findUser( $user_hash ) {
|
private function findUser( $user_hash ) {
|
||||||
$user = User::where( 'company_id', $this->company->id )
|
$user = User::where( 'account_id', $this->company->account->id )
|
||||||
->where( \DB::raw( 'CONCAT_WS(" ", first_name, last_name)' ), 'like', '%' . $user_hash . '%' )
|
->where( \DB::raw( 'CONCAT_WS(" ", first_name, last_name)' ), 'like', '%' . $user_hash . '%' )
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user