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

Discussion taglib does not scroll to new comment when there are multiple discussion in a single portlet



      1. When a comment is added to any discussion instance besides the first one in a portlet the wrong random namespace is added to the hash used to scroll to that comment. This is because the selector used to get the random namespace value uses the portlet namespace so all instances of the discussion will get the value of the random namespace for the first instance of the discussion in the portlet.

      Reproduction Steps

      1. Start Portal.
      2. Add Asset Publisher Portlet to the page.
      3. Add a few other portlets above the Asset Publisher so that you have to scroll down to see it.
      4. Go to Configuration > Display Settings and choose Rich Summary display template and select the Enable Comments checkbox and save.
      5. Add at least two blog entries to the Asset Publisher (Add New > Blogs Entry).
      6. Add a comment to the first entry. Note that the page scrolls to the comment after it has been posted.
      7. Add a comment to the second entry. Note that the page does not scroll to the comment after it has been posted and that the hash added to the url does not exist anywhere on the page.


          Issue Links



              felix.zhang Felix Zhang
              weston.hancock Weston Hancock (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              0 Vote for this issue
              1 Start watching this issue


                Days since last comment:
                5 years, 18 weeks ago


                  Version Package
                  6.2.X EE