Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15877

Paging fails on users post, ordered by created time descending or ascending mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.2.2, 3.2.4
    • Search
    • None
    • PHP 7.1.23, mysql 5.0.12, Chrome 70.0.3538.102
      PHP 5.6.35 mysql 5.7.21, Chrome 70.0.3538.102
      PHP 7.1.23, mysql 5.0.12, FireFox 63.0.3
      PHP 5.6.35 mysql 5.7.21, FireFox 63.0.3
      PHP 5.3 mysql 5.7.21, FireFox 63.0.3

      When i list posts of specified user, the pagination number links works incorrectly. The numbers of links inversed. The problem occur after when i change the ordering mode.

      • To reproduce, just log in, click see users posts on a user profile.
      • Change the ordering mode ascending or descending
      • Then click on page numbers
      • See the number links work incorrectly

      ie.: https://terszobraszat.hu/forum/search.php?st=0&sk=t&sd=a&sr=posts&author_id=52

      The error occured on prosilver and simplicity theme.

      In my lang:

      created time - elküldés időpontja
      ascending - növekvő
      descending - csökkenő

      I debug it and follow the variables. 

      When i comment out phpbb/search/base.php line 83:

      // $start = $result_count - $start - $per_page;

      Then all things work fine. The line 83 reversed the ids order but not needed.

      I think maybe recache ids when the order changes is a good way too.

      I tested two domain and on localhost to.

      HnD

            Unassigned Unassigned
            flytech flytech [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: