[ https://issues.apache.org/jira/browse/OFBIZ-4528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175932#comment-14175932 ]
Mridul Pathak commented on OFBIZ-4528: -------------------------------------- Additional details around the actual problem and solution in the patch, Actual Problem - The out of stock products were being filtered in CategoryDetail.groovy after receiving the product list from getProductCategoryAndLimitedMembers, while pagination values were being set and returned by the mentioned service. The list size at the end was changing and the pagination values returned were not in sync with the final list size. Solution - The filtering of out of stock product must be done in getProductCategoryAndLimitedMembers service itself before setting the pagination values. > Out of stock products screw up the pagination during category browsing > ---------------------------------------------------------------------- > > Key: OFBIZ-4528 > URL: https://issues.apache.org/jira/browse/OFBIZ-4528 > Project: OFBiz > Issue Type: Bug > Components: order, specialpurpose/ecommerce > Affects Versions: Release Branch 11.04, Trunk > Reporter: Kiran Gawde > Assignee: Ashish Vijaywargiya > Attachments: OFBIZ-4528.patch > > > Pagination is handled in getProductCategoryAndLimitedMembers > Then the out of stock filtering is done in CategoryDetail.groovy. > Hence the pagination is screwed up. Certain pages might show less records or > no records based upon data condition. -- This message was sent by Atlassian JIRA (v6.3.4#6332)