Skip to content
Snippets Groups Projects

Issue #3517059: Error when accessing search results page if index is disabled

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -600,6 +600,9 @@ function search_api_form_views_exposed_form_alter(&$form, FormStateInterface $fo
@@ -600,6 +600,9 @@ function search_api_form_views_exposed_form_alter(&$form, FormStateInterface $fo
// not always actually saved in the storage, if the admin didn't change
// not always actually saved in the storage, if the admin didn't change
// their settings.)
// their settings.)
$query = $query_plugin->getSearchApiQuery();
$query = $query_plugin->getSearchApiQuery();
 
if (empty($query)) {
 
return;
 
}
$display_id = $query->getSearchId(FALSE);
$display_id = $query->getSearchId(FALSE);
$facet_source_id = str_replace(':', '__', 'search_api:' . $display_id);
$facet_source_id = str_replace(':', '__', 'search_api:' . $display_id);
$facet_source = \Drupal::entityTypeManager()
$facet_source = \Drupal::entityTypeManager()
Loading