Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

LPS-28014 #716

Closed
wants to merge 1 commit into from

2 participants

Ryan Park Brian Chan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
4 webs/resources-importer-web/docroot/WEB-INF/src/com/liferay/resourcesimporter/util/FileSystemImporter.java
View
@@ -239,9 +239,11 @@ protected void addLayout(long parentLayoutId, JSONObject layoutJSONObject)
friendlyURL = StringPool.SLASH + friendlyURL;
}
+ boolean hidden = layoutJSONObject.getBoolean("hidden");
+
Layout layout = LayoutLocalServiceUtil.addLayout(
userId, groupId, true, parentLayoutId, name, title,
- StringPool.BLANK, LayoutConstants.TYPE_PORTLET, false, friendlyURL,
+ StringPool.BLANK, LayoutConstants.TYPE_PORTLET, hidden, friendlyURL,
new ServiceContext());
LayoutTypePortlet layoutTypePortlet =
Something went wrong with that request. Please try again.