Skip to content
Snippets Groups Projects
Commit 3575d563 authored by Rico Van de Vin's avatar Rico Van de Vin Committed by Jimmy Henderickx
Browse files

Issue #3479103 by ricovandevin: Error and warning in combination with Fast Autocomplete

parent e747abdf
No related branches found
No related tags found
1 merge request!241Prevented errors when no search_api_view option is set.
Pipeline #358067 passed with warnings
......@@ -40,7 +40,7 @@ function facets_exposed_filters_views_data_alter(array &$data) {
*/
function facets_exposed_filters_search_api_query_alter(QueryInterface $query) {
$view = $query->getOption('search_api_view');
if (!$view->exposed_widgets && !$view->display_handler->getOption('exposed_block')) {
if (!$view || (!$view->exposed_widgets && !$view->display_handler->getOption('exposed_block'))) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment