Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facets
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
facets
Commits
3575d563
Commit
3575d563
authored
2 months ago
by
Rico Van de Vin
Committed by
Jimmy Henderickx
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
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
!241
Prevented errors when no search_api_view option is set.
Pipeline
#358067
passed with warnings
2 months ago
Stage: build
Stage: validate
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/facets_exposed_filters/facets_exposed_filters.module
+1
-1
1 addition, 1 deletion
modules/facets_exposed_filters/facets_exposed_filters.module
with
1 addition
and
1 deletion
modules/facets_exposed_filters/facets_exposed_filters.module
+
1
−
1
View file @
3575d563
...
...
@@ -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
;
}
...
...
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