[BUGFIX] Fluid paginate widget wrong number of links 22/25222/4
authorKlaas Johan Kooistra <k.kooistra@drecomm.nl>
Fri, 8 Nov 2013 15:42:09 +0000 (16:42 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Nov 2013 17:54:01 +0000 (18:54 +0100)
commit0ebc5a753bad255cf60a9dcf162b63e90b9d3b7d
tree0d511d1f41fc6bc0a11b3274c1893b9fa66c217d
parent495afb59adf47818215bb702a71ec5f79dfd4359
[BUGFIX] Fluid paginate widget wrong number of links

If the maximumNumberOfLinks configuration option is set to 8
the widget will render 10 links.

Solved the problem by changing a plus to a minus in the calculation
of the display range end and added unit tests for several cases.

Resolves: #53458
Releases: 6.2, 6.1, 6.0
Change-Id: Ic1c55b0bf925b546d119c67433f63e662493a08b
Reviewed-on: https://review.typo3.org/25222
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Widget/Controller/PaginateControllerTest.php [new file with mode: 0644]