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

Journal content search return duplicate objects when version is set to 0.0

    Details

      Description

      We are using the RSS Feed creation of webcontent elements.
      I had to change two things:

      1/ First of all the JournalRSSUtil class has the version set to null. This makes an RSS feed with all versions of a webcontent element. I only wanted the latest version so I put the version at 0.0

      2/ But then the class JournalArticleFinderImpl handles this version all wrong : it takes all the article versions and adds the lastest version to the list. So if you have a journal article with 3 versions. And you query with version = 0.0 , you get three objects that are referencing the lastest version. So I had to put a distinct to the list.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            kdejaeger Koen De Jaeger (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 3 days ago

                Packages

                Version Package