From 29372ce805171caab8b54804a453c2c89c2d3bcd Mon Sep 17 00:00:00 2001 From: erickgonzalez Date: Wed, 4 Sep 2024 18:40:15 -0600 Subject: [PATCH] #29256 include in 23.10.24 LTS --- .../portlets/hostadmin/business/CopyHostContentUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotCMS/src/main/java/com/dotmarketing/portlets/hostadmin/business/CopyHostContentUtil.java b/dotCMS/src/main/java/com/dotmarketing/portlets/hostadmin/business/CopyHostContentUtil.java index 742fd56924f9..e6a7accbdfe6 100644 --- a/dotCMS/src/main/java/com/dotmarketing/portlets/hostadmin/business/CopyHostContentUtil.java +++ b/dotCMS/src/main/java/com/dotmarketing/portlets/hostadmin/business/CopyHostContentUtil.java @@ -19,6 +19,7 @@ import com.dotmarketing.util.Logger; import com.dotmarketing.util.RegEX; import com.dotmarketing.util.RegExMatch; +import com.dotmarketing.util.UtilMethods; import com.google.common.collect.ImmutableMap; import com.liferay.portal.model.User; import org.quartz.SchedulerException; @@ -61,7 +62,7 @@ public void checkHostCopy(final Contentlet newSite, final User user, final Strin final boolean copyContentOnHost = copyParams.get("copy_content_on_host").equals("on"); final boolean copyLinks = copyParams.get("copy_links").equals("on"); final boolean copyHostVariables = copyParams.get("copy_host_variables").equals("on"); - final boolean copyContentTypes = copyParams.get("copy_content_types").equals("on"); + final boolean copyContentTypes = UtilMethods.isSet(copyParams.get("copy_content_types")) ? copyParams.get("copy_content_types").equals("on") : false; final Host sourceHost = hostAPI.find(copyFromHostId, user, false); final HostCopyOptions hostCopyOptions = copyAll?