sebbacon/alaveteli — Issue #286: Body page includes invisible requests in count
Author: bjh21
Created: 2011-11-19 22:27:54+00:00
State: open

If some requests for a body are invisible to the current user then they're hidden on the relevant body's page, but the text at the top giving the number of requests still counts them, and there can end up being a link to a next page that doesn't exist. For instance, http://www.whatdotheyknow.com/body/city_university_london has lots of hidden requests, and hence gets text at the top saying there are 39 requests, and a link at the bottom to page 2, but there are only 17 requests displayed and page 2 is empty.

The count and the page links should be based on the number of visible requests, not the total number of requests.