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

total_match_count is used before core.search_get_posts_data event

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-RC3
    • 3.1.0-RC5
    • Events
    • None
    • PHP 5.5.10, MySQL 5.6.15 Chrome 37

    Description

      The core.search_get_posts_data event is provided to modify the SQL query before the posts data is retrieved but total_match_count is used (lines 557-564, 594, & 605) prior to the event dispatcher (line 699). If I modify the sql such that the number of results retrieved is affected, there is no way to modify the total results and pagination.

      Attachments

        Activity

          People

            nickvergessen Joas Schilling
            Blitze Blitze [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: