-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pagination in user components and com_users (with enabled filters) #8475
Conversation
Please add more information to your issue. Without test instructions and/or any description we will close this issue within 4 weeks. Thanks. |
Please first test #8467 |
Can you provide exact steps to reproduce the issue you see? The first commit almost certainly is wrong. The value for The second commit looks wrong as well. The PR #8467 should indeed have fixed that. |
First commit break my mind at two weeks after migration to 3.4.5. I think for this reasons populateState in com_content (articles list) in frontend totally overriden (has no parent::populateState). Steps to reproduce: Well I see another solution (no time to create pull request now):
For second commit I think that this commit and this lines says you why it possible ;) And yes, #8467 fix it too. |
com_content had overridden the parent populateState method long before 3.4.5's release, the two topics are unrelated. The line you've removed in JModelList actually is 100% irrelevant to processing. Even if you inject a value for the list.start model state via the request, it is overwritten by the limitstart query variable and its default value if it isn't sent. Even so, if it were the actual value used then list.start must be an integer given its use cases and that is exactly what is happening there. |
Sorry but happening what? What do with
I understand that my first fix is incorrect, I do not insist to merge this PR because it's fix really wrong. But bug is present. |
Then you must know, that in current release pagination in com_content goes to first page when you reopen list? Because list.start not save in states (maybe it's feature, I don't know...) |
True, that part with the start and limit indeed looks wrong. Can you do a PR to fix that alone, without anything else and without removing filtering for the start. |
That is indeed by design. The pagination isn't saved in the userstates in frontend views. |
Done: #8481 |
Closing this one as we have a PR that deals only with the issue at hand |
Sometimes pagination in JModelList don`t work. Usually it happens when you are on first page and has no active filters (if it present) in frontend. Reason that list.start state is cleared in populateState method.
Second commit fix pagination in users list com_users when you activate some filters.