Fix references to tenant
This commit is contained in:
parent
bd0332ea2e
commit
6e776417cb
@ -308,6 +308,10 @@ public abstract class BaseEntityImportService<I extends EntityId, E extends Expo
|
|||||||
public <ID extends EntityId> ID getInternalId(ID externalId, boolean throwExceptionIfNotFound) {
|
public <ID extends EntityId> ID getInternalId(ID externalId, boolean throwExceptionIfNotFound) {
|
||||||
if (externalId == null || externalId.isNullUid()) return null;
|
if (externalId == null || externalId.isNullUid()) return null;
|
||||||
|
|
||||||
|
if (EntityType.TENANT.equals(externalId.getEntityType())) {
|
||||||
|
return (ID) ctx.getTenantId();
|
||||||
|
}
|
||||||
|
|
||||||
EntityId localId = ctx.getInternalId(externalId);
|
EntityId localId = ctx.getInternalId(externalId);
|
||||||
if (localId != null) {
|
if (localId != null) {
|
||||||
return (ID) localId;
|
return (ID) localId;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user