Merge pull request #248 from ssmaurya/master
Fix for error during customer description update
This commit is contained in:
		
						commit
						41d34fe4a4
					
				@ -154,7 +154,7 @@ public class CustomerServiceImpl extends AbstractEntityService implements Custom
 | 
			
		||||
                protected void validateUpdate(Customer customer) {
 | 
			
		||||
                    customerDao.findCustomersByTenantIdAndTitle(customer.getTenantId().getId(), customer.getTitle()).ifPresent(
 | 
			
		||||
                            c -> {
 | 
			
		||||
                                if (!c.getId().equals(customer.getUuidId())) {
 | 
			
		||||
                                if (!c.getId().equals(customer.getId())) {
 | 
			
		||||
                                    throw new DataValidationException("Customer with such title already exists!");
 | 
			
		||||
                                }
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user