Skip to content

Commit 9b3f114

Browse files
authored
Merge pull request #32 from gerdemann/bugfix/NeosUpdate
Apply migrations and fix PaginationArrayImplementation
2 parents 0a6e40f + 4095c08 commit 9b3f114

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

Classes/Fusion/PaginationArrayImplementation.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class PaginationArrayImplementation extends AbstractFusionObject
1111
*/
1212
public function evaluate()
1313
{
14-
$maximumNumberOfLinks = $this->tsValue('maximumNumberOfLinks') - 2;
15-
$itemsPerPage = $this->tsValue('itemsPerPage');
16-
$totalCount = $this->tsValue('totalCount');
17-
$currentPage = $this->tsValue('currentPage');
14+
$maximumNumberOfLinks = $this->fusionValue('maximumNumberOfLinks') - 2;
15+
$itemsPerPage = $this->fusionValue('itemsPerPage');
16+
$totalCount = $this->fusionValue('totalCount');
17+
$currentPage = $this->fusionValue('currentPage');
1818
if ($totalCount > 0 !== true) {
1919
return [];
2020
}

Resources/Private/Fusion/Pagination.fusion

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ prototype(Flowpack.Listable:Pagination) < prototype(Neos.Fusion:Component) {
4242
renderer = Neos.Fusion:Tag {
4343
@process.tmpl = ${'<li class="' + props.itemClass + '">' + value + '</li>'}
4444
tagName = 'a'
45-
attributes.href = NodeUri {
45+
attributes.href = Neos.Neos:NodeUri {
4646
node = ${documentNode}
4747
additionalParams = Flowpack.Listable:PaginationParameters {
4848
currentPage = ${i}

composer.json

+15-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,20 @@
7878
"Neos.Neos-20161219094403",
7979
"Neos.Neos-20161219122512",
8080
"Neos.Fusion-20161219130100",
81-
"Neos.Neos-20161220163741"
81+
"Neos.Neos-20161220163741",
82+
"TYPO3.Neos.NodeTypes-201309111655",
83+
"Neos.NodeTypes-20161125002300",
84+
"Neos.NodeTypes-20161125104800",
85+
"Neos.SwiftMailer-20161130105617",
86+
"Neos.ContentRepository.Search-20161210231100",
87+
"Neos.Neos-20170115114620",
88+
"Neos.Fusion-20170120013047",
89+
"Neos.Flow-20170125103800",
90+
"Neos.Seo-20170127154600",
91+
"Neos.Flow-20170127183102",
92+
"Neos.Fusion-20180211175500",
93+
"Neos.Fusion-20180211184832",
94+
"Neos.Flow-20180415105700"
8295
]
8396
}
84-
}
97+
}

0 commit comments

Comments
 (0)