« Previous | Next » 

Revision 5717d53c

ID5717d53c173f27ef5ae0289b2fdc490bad72ce96

Added by Bastian Waidelich about 8 years ago

[BUGFIX] Paginate Widget: Correctly highlight current page

With #28283 the current page is correctly highlighted most of the
time. But if a non-existing page is requested (for example by
manually setting the currentPage-argument to a number higher than
the number of total pages) the last page should be highlighted, but
is not.

That is fixed with this change by making sure that ``numberOfPages``
is always an integer.

Change-Id: Ie1c0238d570040501b3194962135082fbad0ee6d
Related: #28283
Releases: master, 2.2, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted