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
    • Similar Issues:
      Show 4 results 

      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);

        Issue Links

          Activity

          Hide
          Jorge Ferrer added a comment -

          Nice catch,

          Thanks Minhchau!

          Show
          Jorge Ferrer added a comment - Nice catch, Thanks Minhchau!
          Hide
          Michael Hashimoto added a comment -

          Rollback Backport to 6.0.6 at Revision 72406.

          Show
          Michael Hashimoto added a comment - Rollback Backport to 6.0.6 at Revision 72406.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 21 weeks, 2 days ago

                Development

                  Structure Helper Panel