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

Reordering a Navigation Menu Element Downwards Causes Weird Parent - Child Interactions


    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.1.0 Beta 2, 7.1.0 Beta 3, Master
    • Fix Version/s: 7.1.X, Master
    • Component/s: WCM, WCM > Navigation
    • Labels:


      Assume we have elements 1 2 3 4 from top to bottom in navigation menu. Moving 1 from the top to the bottom(2 3 4 1). will cause 4 to temporarily parent 1. Attempting to move 4 will also move 1 now. But instead of moving 4, if we press on the page refresh button, 4 will seperate from parenting 1 and get pushed to the top of the page.

      Note: current workaround would be to move elements solely upwards when reordering (Note that we can also only set an element as the child of another element if we nest it in a south-east direction, so this could be related)

      Steps to Reproduce:

      1. Go to Site Admin > Navigation > Navigation Menus
      2. Make sure your default Navigation Menu is clean, then navigate inside
      3. Add 3 Welcome menu Pages (for a total of 4), and then Refresh the Page for a bug workaround.
      4. Rename your navigation menus, so the top one is 1, the next is 2, then 3, then 4.
      5. Move Navigation Menu 1below 4. (2 3 4 1 should be the order now)
      6. Click on the very left - middle section of 4 to check that 4 is now parenting 1, but don't move it.
      7. Click refresh and watch how 4, the parent gets moved to the top of the screen.

      Expected Result:
      4 doesn't temporarily parent 1 and get moved to top on refresh

      Actual Result:
      4 parents 1 and gets moved to top on refresh

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7
      Portal master GIT ID: f2f56560187087ff14ecc18fa06391d3b0a008a6


          Issue Links



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


                • Created:
                  Days since last comment:
                  1 year, 36 weeks, 5 days ago


                  Version Package