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

Social Bookmarks added to a Web Content template cause JS errors

    Details

      Description

      Steps to reproduce:

      1) Create a minimal Structure;

      2) Create a Template for said Structure with the following code:

      <div class="text-right">
          <@getSocialBookmarks />
      </div>
      
      <#macro getSocialBookmarks>
          <@liferay_ui["social-bookmarks"]
              displayStyle="menu"
              target="_blank"
              title=layout.getName(locale) 
              url=viewURL />
      </#macro>

      3) Add a Web Content based on the newly created Structure;

      4) Add a page with an Asset Publisher;

      5) Open the newly created page;

      6) Click on Web Content's title.

      Expected result:

      The Web Content should be displayed on the Asset Publisher without any Javascript error in the Browser console.

      Actual result:

      The Web Content is displayed on Asset Publisher, but the following Javascript error is displayed in the Browser console:

      Uncaught TypeError: Cannot read property 'one' of null
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                20 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP83
                7.0.X