diff --git a/dotCMS/src/enterprise/java/com/dotcms/enterprise/publishing/remote/handler/ContentTypeHandler.java b/dotCMS/src/enterprise/java/com/dotcms/enterprise/publishing/remote/handler/ContentTypeHandler.java index 4c1ab2516dba..4b48956914ad 100644 --- a/dotCMS/src/enterprise/java/com/dotcms/enterprise/publishing/remote/handler/ContentTypeHandler.java +++ b/dotCMS/src/enterprise/java/com/dotcms/enterprise/publishing/remote/handler/ContentTypeHandler.java @@ -301,11 +301,14 @@ private ContentType saveOrUpdateContentType(final ContentTypeWrapper contentType .toJavaOptional() .orElse(Host.SYSTEM_HOST); + final Host host = APILocator.getHostAPI().find(hostId, APILocator.systemUser(), false); // update host so that it works locally final ContentType typeToSave = hostId.equals(contentTypeIn.host()) ? contentTypeIn - : ContentTypeBuilder.builder(contentTypeIn).from(contentTypeIn).host(hostId).build(); + : ContentTypeBuilder.builder(contentTypeIn).from(contentTypeIn) + .host(host.getIdentifier()) + .siteName(host.getHostname()).build(); final List deferredFields = fields.stream()