[MGNLSTK-988] STKPager calculates wrong -> newsOverview component displays wrong amount of itmes. Created: 09/Aug/12  Updated: 09/Aug/12  Resolved: 09/Aug/12

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: paragraphs
Affects Version/s: 2.0.4
Fix Version/s: 2.0.5

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2012-08-09 at 11.49.57 AM.png     PNG File Screen Shot 2012-08-09 at 11.50.21 AM.png     PNG File Screen Shot 2012-08-09 at 11.50.38 AM.png    
Issue Links:
causality
caused by MGNLSTK-744 Paging broken due to wrong offset cal... Closed
Template:
Acceptance criteria:
Empty

 Description   

The STKPages does not calculate the offset right.

Reproduce:

  • Add in /demo-project/news-and-events/news-overview three more news pages by copy the existing.
  • Configure the news overview components on the /demo-project/news-and-events/news-overview with max results 5.

-> fist pager should display 5 elements, the second one.
Result is, that the first displays two, and the second one.

I think the problem is within the offset calculation in:
info.magnolia.module.templatingkit.util.STKPager.getOffset()
But don't have time to dig into.

Any Components extending the info.magnolia.module.templatingkit.paragraphs.AbstractItemListModel will have this problem:
stkNewsOverview, stkEventsOverview



 Comments   
Comment by Christian Ringele [ 09/Aug/12 ]

Seems I tested wrong: 4.4.2 has the problem, 4.5.x not anymore.
Sorry for inconvenience.

Comment by Christian Ringele [ 09/Aug/12 ]

Wrong issue.

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