Requests for records past end of a search-result incorrectly report total-records as 0
Description
As described in , if you try to fetch a batch of records past the end of the set found by a search, mod-users wrongly returns a record-count of 0. Here are two relevant requests, both part of a sequence of fetches that populate the display of a ui-users search-result. First, a good one (fetching records 30-39):
Now the bad one:
(In case it's not clear, the only difference between the two WSPAI URLs above is that the first has offset=40 and the second has offset=40.)
The total_records count should be 39 in the second case as well as the first.
As described in , if you try to fetch a batch of records past the end of the set found by a search, mod-users wrongly returns a record-count of 0. Here are two relevant requests, both part of a sequence of fetches that populate the display of a ui-users search-result. First, a good one (fetching records 30-39):
Now the bad one:
(In case it's not clear, the only difference between the two WSPAI URLs above is that the first has
offset=40
and the second hasoffset=40
.)The
total_records
count should be 39 in the second case as well as the first.