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

UI should alert about non-unique value in structure field of type Select

    Details

      Description

      When creating a web content structure with a select field, UI "swallows" the options with same values without alerting the user.

      Reproduction steps:

      1. Start a 6.2 portal and login as admin
      2. Go to Admin > Site Administration > Content > Web Content > Structures
      3. Create a new structure and add a "Select" field. Save. Reopen the structure, click on the Select field to bring up the Options / Values list
      4. In the "Settings" tab, double click on "Options" > Add option
      5. Name: option 4 - Value: value 3 >
        Actual behavior

        The UI allows saving and there is no warning message about non-unique values which will be lost.
        (The list after saving will become:
        option 1 - value 1
        option 2 - value 2
        option 4 - value 3)

        expected behavior

        UI should alert the user about the option-lost

      maybe it can be better if UI (and Liferay backend) can deal with any options, like the option editor and the select modul in metal.js and pure html can. I created a fix, but it changed the store of options in AUI, which was flagged as dangerous modification by developers.

        Attachments

        1. Fixed.gif
          Fixed.gif
          403 kB
        2. Reproduced.gif
          Reproduced.gif
          316 kB
        3. Screen Shot 2016-01-13 at 3.32.09 PM.png
          Screen Shot 2016-01-13 at 3.32.09 PM.png
          101 kB

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              peter.borkuti Peter Borkuti (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 41 weeks ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.X EE
                  7.0.0 Beta 8