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

Discarding draft after creating a content page without adding any fragments will break that page's edit mode side bar and product menu button

    Details

      Description

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7. Portal master GIT ID: a9f6943399a05d55f03e301d94223798465d3d95.

      Steps to reproduce:

      1. Navigate to Site Builder > Pages
      2. Add a content page
      3. Click "Discard Draft"

      Expected result:
      Either the discard draft is disabled to begin with (because there is nothing to discard) or nothing happens.

      Actual result:
      The side bar will become blank and the user also cannot open the product menu. Navigating back to the page does not solve the problem. There is a browser error:

      TypeError: Cannot read property 'map' of undefined

      Video recording:

        Attachments

        1. 2019-04-18_16-51-38.mp4
          1.63 MB
        2. LPS-94404 Fixed.mp4
          847 kB
        3. sidebar.PNG
          sidebar.PNG
          162 kB

          Issue Links

            Activity

              People

              • Assignee:
                brian.chiu Brian Chiu (Inactive)
                Reporter:
                brian.chiu Brian Chiu (Inactive)
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 16 weeks, 6 days ago

                  Packages

                  Version Package
                  Master