« Previous | Next » 

Revision dee12aa6

IDdee12aa6d2fb5083b251627890414a82b122c6a4
Parent 1e3536d1

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