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

Edit article UI is disabled when using custom structure

    Details

      Description

      Description
      When using a specific structure to create new content, the publish and edit controls are disabled. The structure specifically contains the select field, but with one of the options having no value.

      Steps to reproduce
      Start a clean bundle of Liferay DXP 7.2 SP1
      Go to Content & Data -> Web Content -> Structure and create a new structure
      Add a select field, and change the value for option 1 to be blank.
      Add a new web content article using the structure that was created.

      Results of Testing
      Expected Results: The content can be edited and published.
      Actual Results: The content can't be edited and published.

      Errors/Logs
      In browser console:

      Uncaught TypeError: Cannot read property 'label' of undefined
          at Y_Node.<anonymous> (?browserId=other&min...ist-keys-min.js:188)
          at YUI.<anonymous> (combo?browserId=othe...ui-base-core.js:111)
          at Array.forEach (<anonymous>)
          at Function.YArray.each.YArray.forEach (combo?browserId=othe...nt-mousewheel.js:87)
          at NodeList.each (combo?browserId=othe...ui-base-core.js:111)
          at component.setLabel (?browserId=other&min...ist-keys-min.js:188)
          at component.syncLabel (?browserId=other&min...ist-keys-min.js:103)
          at component.renderUI (?browserId=other&min...ist-keys-min.js:100)
          at YUI.<anonymous> (combo?browserId=othe...t-mousewheel.js:392)
          at Array.forEach (<anonymous>)
      

      Master
      Reproduced - 1fc2e6c16fa20948ef1e8a8af68efcc85b7f6541

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 weeks, 3 days ago

                Packages

                Version Package
                7.2.X
                Master