Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15877

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.2, 3.2.4
    • Fix Version/s: None
    • Component/s: Search
    • Labels:
      None
    • Environment:
      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

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flytech flytech
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: