mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:57:32 -05: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 ) {
 | 
			
		||||
		$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 . '%' )
 | 
			
		||||
					->first();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user