Kunena/Kunena-Forum — pull request #2659 by kavadas (2014-11-13 12:37:02+00:00)
Title: Fixed pagination issue in category view.

Pagination is broken when you are browsing a list of topics.

How to reproduce the issue:

1. Go to a category with more than one page of topics.
2. Use the pagination to jump to another page, let's say page 3.
3. Use the pagination again to go back to the first page and you will see again the page 3.

This is caused because the category model is setting the limistart value using the getUserStateFromRequest function. There is no need to fetch this value from session. This is something that is used usually in the administration lists where the pagination performs a POST request when you navigate through pages. In front-end the pagination is made using GET requests with the "start" parameter in the URL. When the user goes back to first page the start parameter is ( correctly ) not provided by Joomla! pagination and the getUserStateFromRequest returns ( correctly ) the last value from session.