-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.9-RC1
-
None
Identifer: core.search_backend_search_after
Location (aprox): /search.php:552
Parameters:
search_type
show_results
search_fields
search_terms
sort_by_sql
sort_key
sort_dir
sort_days
ex_fid_ary
m_approve_posts_fid_sql
topic_id
author_id_ary
sql_author_match
start
per_page
id_ary
total_match_count
Explanation:
An extension that wants to add a new permissions that requires post editing to searching such that it depends on more elements to filter than the original parameters that are sent to the phpbb\search\base::keyword_search() && phpbb\search\base::author_search()
Is going to break due to its caching system.
Because of that, filtering after the results are gathered is required also to alter the number of results in the response.
None of theses is perfect but I cannot find an actual good solution for this problem.
In large forums, my previous solution does not work so I'm trying a different approach.
Extension example:
https://www.phpbb.com/community/viewtopic.php?f=456&t=2283001