Issue
-
The getOptions returns the selected and available values for Select fields which allows multiple values
-
Steps to reproduce:
-
Create a Structure S1 with a multiple Select field called Sel1 with three default options

- Create a Template T1 with the following markup
-
Selected options:
<ul>
<#list Sel1.getOptions() as key>
<li>opt: ${key} </li>
</#list>
</ul>
Available options:
<ul>
<#list Sel1.getOptionsMap() as key, value>
<li>opt: ${key} = ${value} </li>
</#list>
</ul> - Create a Web Content WC1 based on S1 selecting option 2 and option 3
- Configure a Web Content Display to show WC1
- Check the WCD's output
-
Observed Result
-
Expected Result
-
Observed Result
-
Environment
- Liferay DXP 7.2 Fix Pack 7
Resolution
- It's a known issue and resolved in Liferay DXP 7.2 FP9.
- If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.