Browse Source
Merge pull request #13468 from dashevchenko/owner_of_entity_from_dashboard_state
[EDQS] Fixed customer creation for NULL customer id
pull/13481/head
Viacheslav Klimov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
common/edqs/src/main/java/org/thingsboard/server/edqs/repo/TenantRepo.java
|
|
|
@ -191,7 +191,7 @@ public class TenantRepo { |
|
|
|
getEntitySet(entityType).add(entityData); |
|
|
|
} |
|
|
|
|
|
|
|
UUID newCustomerId = fields.getCustomerId(); |
|
|
|
UUID newCustomerId = CustomerId.NULL_UUID.equals(fields.getCustomerId()) ? null : fields.getCustomerId(); |
|
|
|
UUID oldCustomerId = entityData.getCustomerId(); |
|
|
|
entityData.setCustomerId(newCustomerId); |
|
|
|
if (entityIdMismatch(oldCustomerId, newCustomerId)) { |
|
|
|
|