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

Resetting pages to match site template fails when the reset is attempted for multiple pages

    Details

      Description

      Description

      When making changes to multiple pages within a site template and attempting to reset the pages in a site connected to that template, clicking "Reset Changes" in the second page does not propagate changes as expected, and a redirect to the previously reset page occurs.

      Steps to Reproduce

      1. Create a site template:
        • Control Panel > Sites > Site Templates > Add > name "MySiteTemplate" > Save
      2. Add two pages to MySiteTemplate:
        • Control Panel > Sites > Site Templates > click on MySiteTemplate
        • Site menu > Site Builder > Pages > + > select Widget Page > name "Page 1" > Add > Save
        • Repeat for "Page 2"
      3. Add a HelloWorld portlet to each page in MySiteTemplate (can be any portlet)
      4. Create a site using MySiteTemplate:
        • Control Panel > Sites > Sites > Add > choose MySiteTemplate > name "MySite" > Save
        • Under 'Pages' leave the "Enable propagation of changes from the site template MySiteTemplate slider turned on > Save
      5. Go to MySite
      6. Delete the HelloWorld widgets from Page 1 and Page 2 (from MySite)
      7. Go to Page 1 and refresh the page in browser
      8. On Page 1, click on i (Additional Information) in the top right corner > click `Reset Changes`
        • Notice the HelloWorld portlet has been re-added
      9. Go to Page 2 and click on i > ‘Reset Changes’
        • Notice you're redirected to Page 1 of MySite
      10. Click on Page 2 on MySite
        • Notice HelloWorld is not re-added

       Expected Results:

      • Page2 MySite portlets are removed and replaced with portlets from MySiteTemplate

       Actual results:

      • User redirected to Page1 and no modifications are made on Page2

       

      Workarounds:

      • Refresh the page prior to clicking `Reset Changes`
      • Disable SPA globally in portal-ext.properties using `javascript.single.page.application.enabled=false`

       

      Reproduced on Master Git ID 41fa17c73020f6e6fa3c4a597a687afd788f41c4

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              ekaterina.nesterovich Ekaterina Nesterovich (Inactive)
              Participants of an Issue:
              Recent user:
              Joel Garman
              Engineering Assignee:
              Ekaterina Nesterovich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 46 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.X
                  7.2.10 DXP FP4
                  7.2.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master