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

Empty value in fragment configuration "validValues" section breaks page editor

    Details

      Description

      Empty value in fragment configuration "validValues" section breaks page editor

       

      Steps to reproduce:

      1. Create a fragment with the configuration from the snippet bellow
      2. Create a content page
      3. Add a fragment from step (1) to a content page

      Expected result: Fragment displays on the page

      Actual result: Fragment is not added, Page editor is broken, there is no way to edit the page anymore after refresh

       

      Configuration to use:

      {
         "fieldSets": [
            {
               "fields": [
                  {
                     "dataType": "string",
                     "defaultValue": "h1",
                     "label": "heading-level",
                     "name": "headingLevel",
                     "type": "select",
                     "typeOptions": {
                        "validValues": [
                           {
                              "label": "h2",
                              "value": "h2"
                           },,
                           {
                              "label": "h1",
                              "value": "h1"
                           }
                        ]
                     }
                  }
               ]
            }
         ]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              pavel.savinov Pavel Savinov
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 1 day ago

                Packages

                Version Package
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                Master