Project

General

Profile

Actions

Bug #79559

closed

Paginate widget not working with ObjectStorage objects

Added by Nicole Cordes almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid
Target version:
-
Start date:
2017-01-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Given:

1) Fluid template

<f:widget.paginate objects="{objectStorage}" as="paginatedObjects" configuration="{itemsPerPage: 9, insertAbove: 0, insertBelow: 1, maximumNumberOfLinks: 10}">
    <f:for each="{paginatedObjects}" as="object" iteration="iterator">
        {iterator.cycle}
    </f:for>
</f:widget.paginate>

2) objectStorage contains 25 items

Expectation:

2 Sites with 9 items each, last page with 7 items

Actual:

3 sites with 9 items each - the last 2 items on page 3 are empty

Actions

Also available in: Atom PDF