Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-159246 - Cannot select option in Select from List 2 #9129

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -17,6 +17,7 @@
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.json.JSONUtil;
import com.liferay.portal.kernel.util.HtmlUtil;

import java.util.HashMap;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -113,9 +114,9 @@ public JSONObject toJSONObject() {
).put(
"errorMessage", _errorMessage
).put(
"helpText", _helpText
"helpText", HtmlUtil.escapeJS(_helpText)
).put(
"label", _label
"label", HtmlUtil.escapeJS(_label)
).put(
"name", _name
).put(
Expand Down
Expand Up @@ -311,12 +311,11 @@ private String _renderFragmentEntry(
if (fragmentEntryLink.isTypeInput()) {
sb.append("; var input = ");
sb.append(
HtmlUtil.escapeJS(
JSONUtil.toString(
_getInputJSONObject(
fragmentEntryLink, httpServletRequest,
fragmentRendererContext.getInfoFormOptional(),
fragmentRendererContext.getLocale()))));
JSONUtil.toString(
_getInputJSONObject(
fragmentEntryLink, httpServletRequest,
fragmentRendererContext.getInfoFormOptional(),
fragmentRendererContext.getLocale())));
}

sb.append("; var layoutMode = '");
Expand Down