MrDys / blacklight

Blacklight Plugin
http://projectblacklight.org/
Other
1 stars 1 forks source link

On the last page of a results list, CatalogHelper#page_entries_info returns end items count greater than total items #472

Closed MrDys closed 12 years ago

MrDys commented 12 years ago

CODEBASE-287: On the last page of a results list, the pagination information copy lists the end items count for the page is greater than the total items. The info box reads "Displaying items 31 - 40 of 32", presumably should read "Displaying items 31 - 32 of 32"

See http://demo.projectblacklight.org/?f%5Bformat%5D%5B%5D=Book&page=4

MrDys commented 12 years ago

Original reporter: cbeer

MrDys commented 12 years ago

cbeer: Fixed bug, refactored #page_entries_info to work with WillPaginate::Collection, with rspec to match.

https://github.com/projectblacklight/blacklight/compare/8e9c2e6...2e0f5d2