I didn't want to make a duplicate thread, but I seem to have problems similar to this.
#1129528: Pager isn't updated based on filtering code
I posted earlier in the release blockers thread here:
#2244965: 7.x-1.0 release blockers
What's going on is that any time I filter by PHP in a view, whether I simply return true for all, or if I make a selection and filter by conditions to return true, the filter works and removes the rows that need to be removed, but it never updates the pager count. The pager, if it is shown, still thinks that there are rows there even though they've been filtered out. I have had to patch according to this thread to keep my pager visible.
#2024689: Adding a View PHP Field causes my Pager to Disappear
So, in review, I have to patch to get a pager, and when it shows up, it doesn't count properly if I filter my view using PHP.
Comments
Comment #1
fizk commentedComment #2
lquessenberry commentedfizk, thanks for updating that for me. I had it written wrong. Thanks for correcting that. I am still working hard to figure this out.
Comment #3
redhatusr commentedIs there any workaround until the bug is fixed? is there any way to count the rows and set a limit with the filter php field?
Comment #4
bmango commentedI have exactly the same problem. Many of my rows are not being shown because they are not on the first page and it looks like they are not there as there is also no pager.
Comment #5
bmango commentedIn the duplicated thread for this issue, Rahul has attached an updated version of the module which addresses the problem of the pager. I have tried his version and it has worked for me. I have asked him if he is able to create a patch rather than his own updated module.
Comment #6
darrellduane commentedThis issue seems to be resolved in 7.x-1.0-alpha2 see more details at https://www.drupal.org/node/2123315