tenant config bug fix
This commit is contained in:
parent
fc239514e9
commit
bd966282c7
|
@ -144,8 +144,8 @@ public class TenantConfigurationServiceImpl implements TenantConfigurationServic
|
|||
}
|
||||
|
||||
TenantConfigurationQuery tenantConfigurationQuery = this.queryFactory.query(TenantConfigurationQuery.class).disableTracking().excludedIds(data.getId()).isActive(IsActive.Active).types(data.getType());
|
||||
if (data.getTenantId() == null) tenantConfigurationQuery.tenantIsSet(false);
|
||||
else tenantConfigurationQuery.tenantIsSet(true).tenantIds(data.getTenantId());
|
||||
if (this.tenantScope.isDefaultTenant()) tenantConfigurationQuery.tenantIsSet(false);
|
||||
else tenantConfigurationQuery.tenantIsSet(true).tenantIds(this.tenantScope.getTenant());
|
||||
if (tenantConfigurationQuery.count() > 0)throw new MyValidationException(this.errors.getMultipleTenantConfigurationTypeNotAllowed().getCode(), this.errors.getMultipleTenantConfigurationTypeNotAllowed().getMessage());
|
||||
|
||||
switch (data.getType()){
|
||||
|
|
Loading…
Reference in New Issue