- Issue created by @ricovandevin
- @ricovandevin opened merge request.
- 🇳🇱Netherlands ricovandevin
Attaching patch of MR to cater for a Composer based workflows.
When using the latests 3.0.x-dev in combination with fast autocomplete → the FAC breaks in combination with two warnings and an error in the log.
Warning: Attempt to read property "exposed_widgets" on null in facets_exposed_filters_search_api_query_alter() (line 45 of /var/www/html/htdocs/modules/contrib/facets/modules/facets_exposed_filters/facets_exposed_filters.module)
Warning: Attempt to read property "display_handler" on null in facets_exposed_filters_search_api_query_alter() (line 45 of /var/www/html/htdocs/modules/contrib/facets/modules/facets_exposed_filters/facets_exposed_filters.module)
Error: Call to a member function getOption() on null in facets_exposed_filters_search_api_query_alter() (line 45 of /var/www/html/htdocs/modules/contrib/facets/modules/facets_exposed_filters/facets_exposed_filters.module)
The problem is that Fast Autocomplete uses an object of class \Drupal\search_api\Query\Query
which will not be filled with the 'search_api_view' option like is done in \Drupalsearch_api\Plugin\views\query\SearchApiQuery::init()
.
TBD
Not sure whether this should be fixed in Facets or in Fast Autocomplete. I will supply a patch for Facets that will work but it might just mask the effects of an issue in Fast Autocomplete.
TBD
N/A
N/A
N/A
Active
3.0
Code
Attaching patch of MR to cater for a Composer based workflows.