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

Possible to drag'n'drop pages under link-to-url pages, even if they are not parentable

    Details

      Description

      Steps to reproduce:

      1. Create a child page for the Welcome page. (page1)
      2. Create another child page under the Welcome page, and set it to be a "Link to URL" page.(page2)
      3. Drag'n'drop page1 under page2 (as if you'd like to make it a child page of page2)
      Checkpoint: The drag'n'drop operation succeeds, and the page hierarchy is accordingly changed.
      4. Refresh with F5.
      Result: The page hierarchy is back to the previous state. The operation at step 3 was actually not saved.

      Notes:
      This probably is happening because by default, link-to-url pages cannot have child pages:

      layout.parentable[url]=false

      If you set this property to true, then the new page structure is saved.

      However, the fact that you can do the drag and dropping, and the structure seemingly changes, and the user is confused in thinking that this was saved, only to find out later on (at the next rendering of the browser page) that it actually was not saved - well, this might be an issue. If link-to-page pages cannot have child pages, user should not be able to drop any other page under such a page. So the drop part of drag'n'drop should not be allowed in such cases (step 3 above). In 6.2, this is the behaviour.

       7.0.x
      Master@59421773bc7ee7d43b8c3618e5b25f95c0e607e7: reproduced (the page administration part is very different here though)
      6.2 SP20: expected behaviour is experienced. You cannot drop a page under a link-to-url page.

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 DXP FP71
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP7
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master