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

DDMTemplates from PortletDisplayTemplate are not exported when local staging is turned on

    Details

      Description

      There were changes between 7.0 and 7.1, so the reproduction steps are different. 

       

      Reproduction steps for master / 7.1/ 7.0:

      1. Create a Site
      2. Turn on Local Staging, enable staging for Widget Templates (Application Display Templates on older versions)
      3. Checkpoint: run the following query:

      SELECT * FROM trunk.portletpreferences WHERE portletId like "%PortletDisplayTemplatePortlet%"; 

      There is a new entry, which contains the settings for the Widget Templates app

      1. Create another Site, enable Local Staging, enable staging for Widget Templates
      2. Run the query again

      Actual result:
      There is only one entry in the database, the two Sites share the same settings, which is wrong

      Expected result:
      There is another entry in the database storing the settings for the Widget Templates app for the second Site

       

      Only in 7.0:

      Description:

      DDMTemplates related to the PortletDisplayTemplate portlet wouldn't be exported the second time and onwards local staging is turned on. The query would be inputting invalid criteria that would prevent proper retrieval of ADTs.

      See comments for more information.

       

      Reproduction steps: 

      1. Create a few ADTs for Liferay DXP Site (test1, test2, test3).
      2. Select one of the newly created ADT as the Display Template for the Asset Publisher portlet (test1)
      3. Enable local live staging with default options (No ADTS, just Documents and Media, Web Content and Mobile Device Families).
      4. Go back to the configuration of the Asset Publisher portlet. There are no other previous created ADTs in the Display Template drop-down menu.
      5. Disable staging and active it again by *selecting "Application Display Templates" option*under Staged Content settings.
      6. Go back to the configuration of the Asset Publisher portlet.

      Actual Result: There are still no other previous created ADTs in the Display Template drop-down menu.
      Expected Result: Other previous created ADTs will be displayed in the Display Template drop-down menu.

        Attachments

          Activity

            People

            Assignee:
            jeremy.chen Jeremy Chen
            Reporter:
            nelly.liu-peng Nelly Liu-Peng
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 29 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP81
                7.0.X
                7.1.3 CE GA4
                7.1.10 DXP FP11
                7.1.X
                Master