Skip to content

Commit 418787d

Browse files
fixed limit calculation
1 parent 34fb511 commit 418787d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/Private/Fusion/Component/Collection.fusion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ prototype(Breadlesscode.Listable:Collection) < prototype(Neos.Fusion:Component)
44
limit = ${ 15 }
55
paginate = ${ false }
66

7-
@context.limit = ${ this.currentPage * this.limit }
8-
@context.offset = ${ (this.currentPage - 1) * this.limit }
7+
@context.limit = ${this.limit}
8+
@context.offset = ${(this.currentPage - 1) * this.limit}
99

1010
renderer = Neos.Fusion:Case {
1111
# elastic search pagination implementation

0 commit comments

Comments
 (0)