Warning on views edit page when using facets_exposed_filters

Created on 7 February 2025, 2 months ago

Problem/Motivation

Hi!
I see warning message on a search_api view edit page when the facets_exposed_filters is enabled.

Warning: foreach() argument must be of type array|object, null given in facets_exposed_filters_search_api_query_alter() (line 49 of modules/contrib/facets/modules/facets_exposed_filters/facets_exposed_filters.module).

Steps to reproduce

Enable facets_exposed_filters.
Try to edit some search_api view and save some setting.

Proposed resolution

Improve condition in the facets_exposed_filters_search_api_query_alter() to check if $views->filter is not empty.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine khiminrm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024