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

Most Viewed Assets portlet does not filter according to configuration

    Details

      Description

      Customer has an issue where his Most Viewed Assets portlet is displaying all the contents, with no regards to the given configuration, including pagination and asset type.

      He isolated the cause on portal-web/docroot/html/portlet/asset_publisher/view_dynamic_list.jspf not defining a start and an end to the AssetEntryQuery before line 133:

      On ee-6.2.x start and end are not defined:

      		else {
      			total = AssetEntryServiceUtil.getEntriesCount(assetEntryQuery);
      
      			searchContainer.setTotal(total);
      
      			results = AssetEntryServiceUtil.getEntries(assetEntryQuery);
      		}
      

      On 6.2.x it is fixed:

      		else {
      			total = AssetEntryServiceUtil.getEntriesCount(assetEntryQuery);
      
      			searchContainer.setTotal(total);
      
      			assetEntryQuery.setEnd(end);
      			assetEntryQuery.setStart(start);
      
      			results = AssetEntryServiceUtil.getEntries(assetEntryQuery);
      		}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 10 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE