[ https://issues.apache.org/jira/browse/OFBIZ-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721082#action_12721082 ]
WeizhanGuo commented on OFBIZ-2549: ----------------------------------- I'm sorry for late, very busy. You can see the bug in https://localhost:8443/humanres/control/FindPerfReviews, and select the employee id, you will see the page number in select is wrong, there are two pages but there is only 1 page in the select option. I double checked this, and found the old patch still have some problems, I make some misunderstand about the divide operator. we need change the code to this: <#assign x=(listSize/viewSize)?floor> <#if listSize gt (x*viewSize)><#assign x=x+1></#if> > The pages number which generate by macro renderNextPrev has bug when the > listSize/viewSize == 0 > ----------------------------------------------------------------------------------------------- > > Key: OFBIZ-2549 > URL: https://issues.apache.org/jira/browse/OFBIZ-2549 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: WeizhanGuo > Assignee: Jacopo Cappellato > Priority: Minor > Fix For: SVN trunk > > Attachments: fixMacroRenderNextPrevPagesNumber_ofbiz-trunk.patch > > > The pages number which generate by macro renderNextPrev has bug when the > listSize/viewSize == 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.