[COMPONENTS][Search] Polished template

[COMPONENTS][Search] Fix event typo
This commit is contained in:
2021-12-02 16:37:17 +00:00
parent 5cd96669fd
commit f35dbbd8c1
3 changed files with 41 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ class Search extends Controller
$actor_qb = DB::createQueryBuilder();
$note_qb->select('note')->from('App\Entity\Note', 'note');
$actor_qb->select('actor')->from('App\Entity\Actor', 'actor');
Event::handle('SeachQueryAddJoins', [&$note_qb, &$actor_qb]);
Event::handle('SearchQueryAddJoins', [&$note_qb, &$actor_qb]);
$notes = $actors = [];
if (!\is_null($note_criteria)) {
$note_qb->addCriteria($note_criteria);