I'm currently trying to extend quicksearch to search contents of private fields. For this i use the eventHandler
"qsearch_results" wich allows me to add the so found items to $search_results['items'].
This works, as long as there is no match on the core fields. If there is such a match, then the content of $search_results['items'] wil be overwritten by later code during permission checks.
IMO the handler for qsearch_results should receive a copy of the $ids array, an return a new $ids array (changed or not)
$ids = trigger_change('qsearch_results', $ids, $expression, $qsr);
I'm currently trying to extend quicksearch to search contents of private fields. For this i use the eventHandler
"qsearch_results" wich allows me to add the so found items to $search_results['items'].
This works, as long as there is no match on the core fields. If there is such a match, then the content of $search_results['items'] wil be overwritten by later code during permission checks.
IMO the handler for qsearch_results should receive a copy of the $ids array, an return a new $ids array (changed or not)
$ids = trigger_change('qsearch_results', $ids, $expression, $qsr);
<!-- github-sync-id:1300328423 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I'm currently trying to extend quicksearch to search contents of private fields. For this i use the eventHandler
"qsearch_results" wich allows me to add the so found items to $search_results['items'].
This works, as long as there is no match on the core fields. If there is such a match, then the content of $search_results['items'] wil be overwritten by later code during permission checks.
IMO the handler for qsearch_results should receive a copy of the $ids array, an return a new $ids array (changed or not)
$ids = trigger_change('qsearch_results', $ids, $expression, $qsr);
Hi @tkempf
That sound good. Can you make a pull-request?
ok done PR #1688 is online