mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	Merge pull request #5547 from turbo124/v5-develop
Fixes for company validation rules
This commit is contained in:
		
						commit
						1f9f914eab
					
				@ -43,7 +43,7 @@ class UpdateCompanyRequest extends Request
 | 
			
		||||
        $rules['country_id'] = 'integer|nullable';
 | 
			
		||||
        $rules['work_email'] = 'email|nullable';
 | 
			
		||||
 | 
			
		||||
        if (isset($rules['portal_mode']) && ($rules['portal_mode'] == 'domain' || $rules['portal_mode'] == 'iframe')) {
 | 
			
		||||
        if (isset($input['portal_mode']) && ($input['portal_mode'] == 'domain' || $input['portal_mode'] == 'iframe')) {
 | 
			
		||||
            $rules['portal_domain'] = 'sometimes|url';
 | 
			
		||||
        } else {
 | 
			
		||||
            $rules['portal_domain'] = 'nullable|alpha_num';
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user