Skip to content
Snippets Groups Projects
Commit df46d2ff authored by Salvo Scala's avatar Salvo Scala
Browse files

RD-748: Improve controls on hook_search_api_query_alter

parent 4e388648
No related branches found
Tags 7.x-1.13
No related merge requests found
......@@ -150,7 +150,7 @@ function bat_facets_search_api_query_alter($query) {
$info = entity_get_info($query->getIndex()->getEntityType());
// Only modify the query if this query is against bat units.
if ($info['base table'] = 'bat_types') {
if ($info['base table'] == 'bat_types') {
// Get this widget's settings.
$index = $query->getIndex();
$facets = facetapi_get_enabled_facets('search_api@' . $index->machine_name);
......
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