Skip to content

Commit

Permalink
Merge pull request #32 from gerdemann/bugfix/NeosUpdate
Browse files Browse the repository at this point in the history
Apply migrations and fix PaginationArrayImplementation
  • Loading branch information
dimaip authored May 4, 2018
2 parents 0a6e40f + 4095c08 commit 9b3f114
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Classes/Fusion/PaginationArrayImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PaginationArrayImplementation extends AbstractFusionObject
*/
public function evaluate()
{
$maximumNumberOfLinks = $this->tsValue('maximumNumberOfLinks') - 2;
$itemsPerPage = $this->tsValue('itemsPerPage');
$totalCount = $this->tsValue('totalCount');
$currentPage = $this->tsValue('currentPage');
$maximumNumberOfLinks = $this->fusionValue('maximumNumberOfLinks') - 2;
$itemsPerPage = $this->fusionValue('itemsPerPage');
$totalCount = $this->fusionValue('totalCount');
$currentPage = $this->fusionValue('currentPage');
if ($totalCount > 0 !== true) {
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Pagination.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ prototype(Flowpack.Listable:Pagination) < prototype(Neos.Fusion:Component) {
renderer = Neos.Fusion:Tag {
@process.tmpl = ${'<li class="' + props.itemClass + '">' + value + '</li>'}
tagName = 'a'
attributes.href = NodeUri {
attributes.href = Neos.Neos:NodeUri {
node = ${documentNode}
additionalParams = Flowpack.Listable:PaginationParameters {
currentPage = ${i}
Expand Down
17 changes: 15 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,20 @@
"Neos.Neos-20161219094403",
"Neos.Neos-20161219122512",
"Neos.Fusion-20161219130100",
"Neos.Neos-20161220163741"
"Neos.Neos-20161220163741",
"TYPO3.Neos.NodeTypes-201309111655",
"Neos.NodeTypes-20161125002300",
"Neos.NodeTypes-20161125104800",
"Neos.SwiftMailer-20161130105617",
"Neos.ContentRepository.Search-20161210231100",
"Neos.Neos-20170115114620",
"Neos.Fusion-20170120013047",
"Neos.Flow-20170125103800",
"Neos.Seo-20170127154600",
"Neos.Flow-20170127183102",
"Neos.Fusion-20180211175500",
"Neos.Fusion-20180211184832",
"Neos.Flow-20180415105700"
]
}
}
}

0 comments on commit 9b3f114

Please sign in to comment.