better_exposed_filters_options_alter is not updating altering all the options set in config

Created on 3 October 2024, 2 months ago

Problem/Motivation

I have a view that under certain conditions needs to ignore the input_required setting.

hook_better_exposed_filters_options_alter Alters BEF options before the exposed form widgets are built..

However, this is partially the case.

If I do this

  $options['general']['input_required'] = FALSE;

When exposedFilterApplied is executed, the input_required option is still what was set on the view settings.

Steps to reproduce

* Create a view that uses BEF and mark the options as input required, add exposed filters to the view.
* Create a custom module and add the hook, change the input_required option to false.
* Confirm that even though the option was changed in code, the view still expects input.

Proposed resolution

Updated the logic so that all the other options are updated as well.

πŸ› Bug report
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡¨πŸ‡·Costa Rica alemadlei

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024