From 392e03dd146297debc77208b307b81481db5ff3f Mon Sep 17 00:00:00 2001 From: Shiv Shankar Maurya <12098397+ssmaurya@users.noreply.github.com> Date: Wed, 16 Aug 2017 22:22:30 +0530 Subject: [PATCH] Fix for error during customer description update --- .../thingsboard/server/dao/customer/CustomerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/src/main/java/org/thingsboard/server/dao/customer/CustomerServiceImpl.java b/dao/src/main/java/org/thingsboard/server/dao/customer/CustomerServiceImpl.java index 4973d9ecf8..d7dde12932 100644 --- a/dao/src/main/java/org/thingsboard/server/dao/customer/CustomerServiceImpl.java +++ b/dao/src/main/java/org/thingsboard/server/dao/customer/CustomerServiceImpl.java @@ -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!"); } }