Bug #28283

Paginate Widget does not highlight current page

Added by Bastian Waidelich over 10 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Should have
Category:
Widgets
Target version:
-
Start date:
2011-07-18
Due date:
% Done:

100%

Estimated time:
Has patch:
No

Description

The line

$pages[] = array('number' => $i, 'isCurrent' => ($i === $this->currentPage));

PaginateController::buildPagination() fails to set 'isCurrent' correctly for certain pages because $i is of type float and thus not (type safe) equal to $this->currentPage.

Also available in: Atom PDF