mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:47:32 -05:00 
			
		
		
		
	Prevent creating client without contacts
This commit is contained in:
		
							parent
							
								
									b0ce52be4d
								
							
						
					
					
						commit
						ec1dca1970
					
				@ -116,7 +116,7 @@ class ClientRepository extends BaseRepository
 | 
			
		||||
        */
 | 
			
		||||
 | 
			
		||||
        $first = true;
 | 
			
		||||
        $contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
 | 
			
		||||
        $contacts = isset($data['contact']) ? [$data['contact']] : isset($data['contacts']) ? $data['contacts'] : [[]];
 | 
			
		||||
        $contactIds = [];
 | 
			
		||||
 | 
			
		||||
        // If the primary is set ensure it's listed first
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user