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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 18 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE