Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-54235

Method getOptions() in velocity template returns empty if there's just one selection

    Details

      Description

      Using the method getOptions() from TemplateNode Class in velocity template returns empty if there's just one selection. The expected result is that the options are always available for select types with `multiple` property enabled.

      E.g:
      $mySelectMenu.getOptions()

      The return is empty

        Attachments

        1. fixed.png
          fixed.png
          3 kB
        2. reproduced.png
          reproduced.png
          3 kB

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              anderson.perrelli Anderson Perrelli
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 8 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5