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

Cannot add JavaScript to a site when the logo is changed

    Details

      Description

      A user is unable to add JavaScript to a page when the default logo is replaced.

      Here are the steps to reproduce:

      1. Go to Control Panel
      2. Go to Site Pages
      3. Go to Logo and change the logo to a different image
      4. Click "Save
      5. Go to JavaScript
      6. Type the following line into the text field: var test = document.getElementById('footer');test.innerHTML = "Hello World";
      7. Click "Save"
      8. The user will see exceptions and an error message. Also, the "Powered by Liferay" line at the bottom of all site pages will not be replaced by "Hello World"

      If the user clicks "Save" after both changing logo and adding the JavaScript (clicking save at step 4 and step 7), the error will appear. If the user clicks "Save" only at step 8, and not at step 4, the error will not be reproduced.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ginson.ren Ginson Ren
              Reporter:
              ken.duenwald Ken Duenwald
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 7 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2