Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Model filter loses scope after validating paginated results #299
The filterable model concern contains functionality related to paginating filtered result sets. After the query is completed, the concern checks to see if the requested page exceeds the last available page. If it does, it re-runs the query to return results for the last available page.
The problem here is that in doing so, the initial scope passed to the filter method is not maintained.