? Success
Pull Request for # 5685

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
13 Jan 2015

Fix for issue: #5685 (see that issue for testing instruction)

The Article Pagination "Prev" & "Next" used the current article's Access Level (with "AND a.access = ' . (int) $row->access)") to navigate among articles within the same Category. That caused problems with Articles from the same Category that had different Access Levels.

This fix checks the User's authorized Access Levels (with "AND a.access IN ('.implode(",", JAccess::getAuthorisedViewLevels($user->id)).') ')" instead.

Note: using "IN" in SQL queries might be slower than "equal". I have not tested this fix on categories with huge numbers of articles!

avatar pe7er pe7er - open - 13 Jan 2015
avatar jissues-bot jissues-bot - change - 13 Jan 2015
Labels Added: ?
avatar brianteeman brianteeman - change - 13 Jan 2015
Rel_Number 5685
Relation Type Pull Request for
avatar rdeutz
rdeutz - comment - 13 Jan 2015

You forget to make spaces before and after "." could you fix that to make travis happy, Thanks :-)

avatar pe7er
pe7er - comment - 13 Jan 2015

Ah, I noticed the Travis error but did not know the cause.
Thanks Robert!

avatar pe7er pe7er - reference | 7ce3819 - 13 Jan 15
avatar Hackwar
Hackwar - comment - 13 Jan 2015

@test successfull

avatar Kubik-Rubik Kubik-Rubik - alter_testresult - 13 Jan 2015 - Hackwar: Tested successfully
avatar Kubik-Rubik Kubik-Rubik - test_item - 13 Jan 2015 - Tested successfully
avatar Kubik-Rubik
Kubik-Rubik - comment - 13 Jan 2015

Thank you @pe7er, this PR fixes the problem.

I will merge the PR and close it!


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

avatar Kubik-Rubik Kubik-Rubik - reference | b835d78 - 13 Jan 15
avatar Kubik-Rubik Kubik-Rubik - merge - 13 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - close - 13 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - close - 13 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - change - 13 Jan 2015
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-01-13 14:15:03
avatar pe7er
pe7er - comment - 13 Jan 2015

Great! Thank you all for testing!

avatar Kubik-Rubik Kubik-Rubik - change - 13 Jan 2015
Milestone Added:
avatar pe7er pe7er - head_ref_deleted - 5 Nov 2015

Add a Comment

Login with GitHub to post a comment