Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bat-3413995
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bat-3413995
Commits
df46d2ff
Commit
df46d2ff
authored
8 years ago
by
Salvo Scala
Browse files
Options
Downloads
Patches
Plain Diff
RD-748
: Improve controls on hook_search_api_query_alter
parent
4e388648
No related branches found
Branches containing commit
Tags
7.x-1.13
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/bat_facets/bat_facets.module
+1
-1
1 addition, 1 deletion
modules/bat_facets/bat_facets.module
with
1 addition
and
1 deletion
modules/bat_facets/bat_facets.module
+
1
−
1
View file @
df46d2ff
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment