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

Starting from DE-70, embedded WCD does not display selected content on other pages, if instanceId contains dash sign

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.0.X, 7.1.X, Master
    • Fix Version/s: Master
    • Component/s: Core Infrastructure
    • Labels:
    • Fix Priority:
      3

      Description

      Reproduction steps

      1. Start Liferay DXP
      2. Deploy attached theme, which contains 4 embedded Web Content Display portlet (see code below)
      3. Create 4 new Basic Web Content
      4. Create a second (public) page
      5. Set theme for all Public pages
      6. Go to the first public page, you see here the footer with 4 areas where you can select Web Content. Select the Web Content for each block.
      7. Go to the second page

      Expected: You see the previously selected Web Content also on this page
      Actual result: You don't see any Web Content and have to select Web Content if you want to see it on the page

      Note: This works as expected when the instanceId does not contain - (minus) character

      <div class="footer container-fluid"> 
          <div class="container"> 
              <div class="row"> 
                  <div class="col-xs-6 col-md-3"> 
                      <@liferay_portlet["runtime"] 
                      instanceId="almafa-footer1" 
                      portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" 
                      /> 
                  </div> 
                  <div class="col-xs-6 col-md-3"> 
                      <@liferay_portlet["runtime"] 
                      instanceId="almafa-footer2" 
                      portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" 
                      /> 
                  </div>                    
                  <div class="col-xs-6 col-md-3"> 
                      <@liferay_portlet["runtime"] 
                      instanceId="almafa-footer3" 
                      portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" 
                      /> 
                  </div> 
                  <div class="col-xs-6 col-md-3"> 
                      <@liferay_portlet["runtime"] 
                      instanceId="almafa-footer4" 
                      portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" 
                      /> 
                  </div> 
              </div> 
          </div> 
      </div>
      

      Additional tests:

      Tested on Result
      DE-69  Works
      DE-70  Reproduced
      DE-77  Reproduced
      7.0.x-private 0f86720ef3908265f992da78c5d7bc5e5e89d556  Reproduced
      7.1.x  Reproduced
      master  Reproduced

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  24 weeks, 4 days ago

                  Packages

                  Version Package
                  Master