?
avatar osignell
osignell
17 Nov 2015

Steps to reproduce the issue

Install Joomla 3.5.0 beta
Open Administrator->Menus->Main menu
Add at least 5 new menu items
Change limit dropdown to "5"
Open search tools, select "Published".
Change to page 2, everything ok.
Change back to page 1, everything ok.
Open search tools again, select "- Select status-".
Try going to page 2 again.

Expected result

Page 2 shown

Actual result

Page 1 shown again

Additional comments

Please note that this is using 3.5.0 beta, so the changes regarding pagination included here do not fix this problem.

avatar osignell osignell - open - 17 Nov 2015
avatar osignell
osignell - comment - 17 Nov 2015

Additional info:

The reason for this seems to be that the limitstart value is reset on line 709 in libraries/legacy/model/list.php because new_state is null and cur_state is "1".


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

avatar Bakual
Bakual - comment - 17 Nov 2015

Reverting #7487 didn't fix it for me, can you try?

avatar Bakual
Bakual - comment - 17 Nov 2015

limistart is reset when the code thinks the filter states changed :)

avatar osignell
osignell - comment - 17 Nov 2015

Reverting #7487 DOES actually fix the problem for me, you just have to try twice right after making the code change in order for the session to pick up the change.


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

avatar zero-24 zero-24 - change - 17 Nov 2015
Milestone Added:
avatar osignell
osignell - comment - 17 Nov 2015

correction.. it works if I use isset() without the additional check.


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

avatar infograf768
infograf768 - comment - 17 Nov 2015

I confirm
Using

if (isset($filters[$name]))
            {
                $new_state = $filters[$name];
            }

solves this issue

avatar Bakual
Bakual - comment - 17 Nov 2015

Can you check that the original issue with the user manager is solved as well this way?

avatar osignell
osignell - comment - 17 Nov 2015

The user manager works fine for me using the version with isset() only.

avatar Bakual
Bakual - comment - 17 Nov 2015

Who wants to do the PR?

avatar infograf768
infograf768 - comment - 17 Nov 2015

Article Manager displays OK Unpublished articles (state = 0)
No problem either for modules.

avatar wojsmol wojsmol - reference | 64f76a1 - 17 Nov 15
avatar wojsmol
wojsmol - comment - 17 Nov 2015
avatar zero-24
zero-24 - comment - 17 Nov 2015

Closing as we have a PR

avatar zero-24 zero-24 - change - 17 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-17 18:34:59
Closed_By zero-24
avatar zero-24 zero-24 - close - 17 Nov 2015

Add a Comment

Login with GitHub to post a comment