[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: |
|
||||||||
| 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 |