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

The default values of WC structures are not included in the export/import process

    Details

      Description

      Steps to reproduce:

      1. Create a Site (Site1) with three pages: home, page-one and page-two.
      2. Go to Web Content and create an structure (wcStr) with a "Link to page" and a "Text"
      3. Edit the default values for this wcStr:
        1. "Title": "default web content"
        2. "Link to page": page-one
        3. "Text" field: "default text"
      4. Create a template for the wcStr
      5. Export pages of the Site1, and download the lar file.
      6. Create an empty site: Site2, and import the lar file in its public pages.
      7. Try to create a wcStr content in the Site 2

      Result There aren't default values
      Expected Default values are populated.

      The issue is also affecting to Site Templates following the next steps:

      1. Create a Site Template (SiteTpl1) with three pages: home, page-one and page-two.
      2. Go to Web Content and create an structure (wcStr) with a "Link to page" and a "Text"
      3. Edit the default values for this wcStr:
        1. "Title": "default web content"
        2. "Link to page": page-one
        3. "Text" field: "default text"
      4. Create a template for wcStr
      5. Go to Control Panel > Sites, and create a Site with the SiteTpl1
      6. Go to Site Admin > Web Content, and try to create a web content with the wcStr.

      Result: Default values are not kept for some of the fields.
      Expected Default values for all the fields are kept.

        Attachments

        1. fixed-53343-1.PNG
          fixed-53343-1.PNG
          115 kB
        2. fixed-53343-2.PNG
          fixed-53343-2.PNG
          115 kB
        3. fixed-53343-master-1.PNG
          fixed-53343-master-1.PNG
          116 kB
        4. fixed-53343-master-2.PNG
          fixed-53343-master-2.PNG
          103 kB
        5. reproduced-53343-1.PNG
          reproduced-53343-1.PNG
          117 kB
        6. reproduced-53343-2.PNG
          reproduced-53343-2.PNG
          114 kB
        7. reproduced-53343-3.PNG
          reproduced-53343-3.PNG
          117 kB

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 44 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M5