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

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                weston.hancock Weston Hancock
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 42 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE