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
Pagination user manager when Search Tools present #7487
Conversation
This fixes indeed the state filter. |
Somewhere is the function 'getUserStateFromRequest' called with the wrong key. Key com_users.users.default.filter.group is being called instead of com_users.users.default.filter.group_id. Thats why the cur_state isn't the same as new_state and that is why the limitstart is set to 0 Haven't found the wrong call yet, someone got a clue where to search? |
@LaurensGoedel That was the hint I needed, thanks! Can you try again? |
@Bakual yes, thats it! Thanks! |
I have tested this item ✅ successfully on d667541 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7487. |
Together with the test by @LaurensGoedel I'm goint to mark this RTC for 3.5.0. Thanks. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7487. |
Thank you @Bakual and testers! Merged. |
Pagination user manager when Search Tools present
Issue
Pagination doesn't work when you select a "0" value in the SearchTools. In the user manager this is for example "Activated" or the state "Enabled". In the Article Manager this would be the state "Disabled" (btw consistency ftw!).
See #7486 for the original issue
Solution
I tried to fix that originally with #7194 but did a stupid mistake. Of course "0" is a valid filter value, but my boolean check would take that as an invalid value.
This PR fixes it by only threating an empty string (nothing selected) as invalid.
Testing
Test that the pagination the managers with Search Tools work with any values. Also test that it still works in Hathor and modal layouts.
Known issue so farThe "Groups" filter in the user manager still acts wrong. I haven't found yet why that is. maybe someone has an idea.