Skip to content

Commit

Permalink
LPS-139789 Properly treats URLs as arrays when creating a new customE…
Browse files Browse the repository at this point in the history
…lement Remote App
  • Loading branch information
jbalsas authored and brianchandotcom committed Sep 24, 2021
1 parent cf447ed commit a4eea2d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ private void _add(ActionRequest actionRequest) throws PortalException {
String type = ParamUtil.getString(actionRequest, "type");

if (type.equals(RemoteAppConstants.TYPE_CUSTOM_ELEMENT)) {
String[] customElementCSSURLs = ParamUtil.getStringValues(
actionRequest, "customElementCSSURLs");
String[] customElementURLs = ParamUtil.getStringValues(
actionRequest, "customElementURLs");

_remoteAppEntryService.addCustomElementRemoteAppEntry(
ParamUtil.getString(actionRequest, "customElementCSSURLs"),
StringUtil.merge(customElementCSSURLs, StringPool.NEW_LINE),
ParamUtil.getString(
actionRequest, "customElementHTMLElementName"),
ParamUtil.getString(actionRequest, "customElementURLs"),
StringUtil.merge(customElementURLs, StringPool.NEW_LINE),
nameMap, portletCategoryName,
ParamUtil.getString(actionRequest, "properties"));
}
Expand Down

0 comments on commit a4eea2d

Please sign in to comment.