[MGNLSTK-749] STKPager: getOffset() Created: 04/Mar/11  Updated: 04/Mar/11  Resolved: 04/Mar/11

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Simone Miterangelis Assignee: Ondrej Chytil
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLSTK-744 Paging broken due to wrong offset cal... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

The calculation of offset is wrong

int offset = ((getCurrentPage()) * maxResultsPerPage) -1;

instead of

int offset = ((getCurrentPage() - 1) * maxResultsPerPage);



 Comments   
Comment by Ondrej Chytil [ 04/Mar/11 ]

Fixed with MGNLSTK-744.
Will be included in next bugfix release.

Generated at Mon Feb 12 07:30:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.