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

total_match_count is used before core.search_get_posts_data event

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-RC3
    • Fix Version/s: 3.1.0-RC5
    • Component/s: Events
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              Blitze Blitze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: