[COMPONENT][Search][LeftPanel] Add way of adding a search result as a left panel feed

This commit is contained in:
2021-12-11 10:48:08 +00:00
parent 9afe6ecfac
commit dbc8bf2ae1
3 changed files with 80 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ class Search extends FeedController
$query[] = "{$key}:{$langs}";
}
} else {
throw new BugFoundException('Search form seems to have new fields the code did not expect');
throw new BugFoundException('Search builder form seems to have new fields the code did not expect');
}
}
}
@@ -103,7 +103,7 @@ class Search extends FeedController
return [
'_template' => 'search/show.html.twig',
'search_form' => Comp\Search::searchForm($request, $q),
'search_form' => Comp\Search::searchForm($request, query: $q, add_subscribe: true),
'search_builder_form' => $search_builder_form->createView(),
'notes' => $notes,
'actors' => $actors,