Describe the bug
If you paginate over a filtered relation (say, users.active) then rel.total will return incorrect results since it calls dataset.unfiltered which discard all the filtering.
To Reproduce
user.active.pager.total returns the total number of users
Expected behavior
user.active.pager.total returns the number of active users
Your environment
- Affects my production application: NO (or maybe? 😅)
Describe the bug
If you paginate over a filtered relation (say,
users.active) thenrel.totalwill return incorrect results since it callsdataset.unfilteredwhich discard all the filtering.To Reproduce
user.active.pager.totalreturns the total number of usersExpected behavior
user.active.pager.totalreturns the number of active usersYour environment