Merge pull request #13468 from dashevchenko/owner_of_entity_from_dashboard_state

[EDQS] Fixed customer creation for NULL customer id
This commit is contained in:
Viacheslav Klimov 2025-05-30 11:35:53 +03:00 committed by GitHub
commit c85c5f0c9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,7 +191,7 @@ public class TenantRepo {
getEntitySet(entityType).add(entityData); getEntitySet(entityType).add(entityData);
} }
UUID newCustomerId = fields.getCustomerId(); UUID newCustomerId = CustomerId.NULL_UUID.equals(fields.getCustomerId()) ? null : fields.getCustomerId();
UUID oldCustomerId = entityData.getCustomerId(); UUID oldCustomerId = entityData.getCustomerId();
entityData.setCustomerId(newCustomerId); entityData.setCustomerId(newCustomerId);
if (entityIdMismatch(oldCustomerId, newCustomerId)) { if (entityIdMismatch(oldCustomerId, newCustomerId)) {