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

Change in the Look&Feel in a portlet of a Page Template will blank out JavaScript and Query String field of a page created from that template

    Details

      Description

      Reproduction Steps (AAA):

      1. Start Liferay Master and login as admin user.
      2. Add a new page (AAA) and select "Blog" type.
      3. Save.
      4. Navigate to the AAA page and click the Edit icon
      5. Add JavaScript code: console.log('AAA')
      6. Save the page.
      7. Go to Control Panel/Sites/Page Templates.
      8. Open the Blog template
      9. Click on the edit icon for Blogs
      10. Click the JavaScript section (see that there is no JavaScript content)
      11. Save this template (without any changes)
      12. Go back to newly created AAA page and click the Edit icon
      13. Click the JavaScript section

      Expected:
      JavaScript section contains the previously added JavaScript code.

      Actual Behavior:
      JavaScript section is empty.

      Alternate Test (BBB):
      Put some JavaScript in Step 10 console.log('TEMP');. We would expect the page created from the Blogs Template to keep it's original JavaScript and not the Templates.

        Attachments

        1. AAA.gif
          AAA.gif
          3.26 MB
        2. BBB.gif
          BBB.gif
          4.17 MB

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 Beta 8