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

Web content display portlet shows error message when rendering web content from another community

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      Currently, when looking up which article to display, Liferay uses the following logic:

      article = JournalArticleLocalServiceUtil.getLatestArticle(scopeGroupId, articleId, WorkflowConstants.STATUS_ANY);

      However, you can select web content from a group other than the current scope group. Instead of using the scope group id, we should be using the same group id that is used elsewhere when handling the form fields:

      article = JournalArticleLocalServiceUtil.getLatestArticle(articleDisplay.getGroupId(), articleId, WorkflowConstants.STATUS_ANY);

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 25 weeks, 2 days ago