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

Grouping Fieldsets and Selection Fields allows you to create empty Selection Fields

    Details

      Description

      Description

      When creating a document, if you create a Field Group containing a Text Field, a Fieldset and a Selection Field you will be able to remove the options of the Selection Field, make it Required and save.

       

      Video: simplescreenrecorder-2021-02-08_17.55.49.mp4

      Pre-conditions

      Steps to Reproduce

      1. Go to Product Menu > Content & Data > Documents and Media > Document Types;
      2. Create a new Document;
      3. Add an element;
      4. Add a Fieldset (creating a Field Group);
      5. Add a Selection Field on the same Field Group (Except the Grid one);
      6. Make the Selection Field required;
      7. Remove the Options of the Selection Field;
      8. Save the document;

      Expected Result

      You should not be able to save the document with a empty Selection Field.
      Actual Result

      You are able to save the document with a empty Selection Field.

      OBS: Using a Grid on the step 5 and saving wipes the entire document.

      OBS 2: Reproducible in Structures, Fieldsets and Metadata Sets.
      Reproduced In
      master: 12116cd8c2d842201e70ff16e0c41ce05969fc2a

        Attachments

          Activity

            People

            Assignee:
            team-lima Product Team Lima
            Reporter:
            erick.monteiro Erick Monteiro (Inactive)
            Participants of an Issue:
            Recent user:
            Tomáš Polešovský
            Engineering Assignee:
            Adolfo Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 21 weeks, 2 days ago

                Packages

                Version Package
                Master