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

When propagating fragment changes, only one instance of the fragment is updated per page

    Details

      Description

      Description
      In LPS-128652, we modified the behavior of the "updateLatestChanges" method, so that it only one instance of a fragment, rather than updating all instances of that fragment on the page.

      This causes a problem with the Propagate command to propagate fragments' changes, since now only one instance of a fragment will ever get updated on a page. If you have multiple instances of the same fragment on a page, only one of those instances will be updated when you perform the Propagate operation.

      Steps to reproduce
      1. Start up Liferay and log in as the admin user.
      2. Navigate to Design > Fragments and create a new fragment Collection.
      3. Add a new Fragment to the collection.
      4. Add the following string to the HTML code of the Fragment:

          <p>Hello World</p>
      

      5. Navigate to Site Builder > Pages and create a new Blank page (a Content page).
      6. Add 2 instances of the Fragment from steps 3-4 onto the page.
      7. Publish the page.
      7. Navigate to Design > Fragments and edit the Fragment from steps 3-4
      8. Edit the string to the following and publish:

          <p>Goodbye World</p>
      

      9. Select the peapod menu on the Fragment from steps 3-4 and select View Usages
      10. Highlight all options and click the Propagate button
      11. Navigate to the Content page from step 5.

      Expected Result: Both fragments are updated with "Goodbye world"
      Actual Result: Only the second fragment placed on the page is updated with "Goodbye world"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oziel.souza Oziel Souza
              Reporter:
              michael.bowerman Michael Bowerman
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Michael Bowerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP16
                  7.2.X
                  7.3.10.3 DXP SP3
                  7.3.X
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master