? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
21 Jul 2015

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 far
The "Groups" filter in the user manager still acts wrong. I haven't found yet why that is. maybe someone has an idea.

avatar Bakual Bakual - open - 21 Jul 2015
avatar Bakual Bakual - change - 21 Jul 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2015
Labels Added: ?
avatar LaurensGoedel
LaurensGoedel - comment - 21 Jul 2015

This fixes indeed the state filter.
As described, the group filter isn't working. I'll try to have a look at it later today

avatar LaurensGoedel
LaurensGoedel - comment - 21 Jul 2015

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?

avatar Bakual
Bakual - comment - 21 Jul 2015

@LaurensGoedel That was the hint I needed, thanks! Can you try again?

avatar LaurensGoedel
LaurensGoedel - comment - 22 Jul 2015

@Bakual yes, thats it!
i've overlooked that multiple times :disappointed:

Thanks!

avatar brianteeman brianteeman - change - 22 Jul 2015
Category Administration
avatar zero-24 zero-24 - test_item - 4 Nov 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 4 Nov 2015

I have tested this item :white_check_mark: successfully on d667541

Thanks fixes the issue for me.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7487.

avatar zero-24 zero-24 - alter_testresult - 4 Nov 2015 - LaurensGoedel: Tested successfully
avatar zero-24 zero-24 - change - 4 Nov 2015
Milestone Added:
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 4 Nov 2015
Milestone Added:
avatar zero-24
zero-24 - comment - 4 Nov 2015

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.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Added: ?
avatar Kubik-Rubik
Kubik-Rubik - comment - 4 Nov 2015

Thank you @Bakual and testers! Merged.

avatar Kubik-Rubik Kubik-Rubik - change - 4 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-04 10:54:41
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 4 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 4 Nov 2015
avatar Kubik-Rubik Kubik-Rubik - reference | d8e4926 - 4 Nov 15
avatar Kubik-Rubik Kubik-Rubik - merge - 4 Nov 2015
avatar Kubik-Rubik Kubik-Rubik - close - 4 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2015
Labels Removed: ?
avatar Bakual Bakual - head_ref_deleted - 4 Nov 2015

Add a Comment

Login with GitHub to post a comment