Reset button not working with Sort, Combine and AJAX

Created on 30 October 2024, about 2 months ago

Problem/Motivation

I know there are quite some tickets about this but I am creating a new one because I could fix it with a pretty straight forward patch that can be merged easily since it is just a check that the entree in the array is set before accessing it.

I get that error in my browser console:

Warning: Undefined array key "sort_by" in /var/www/html/web/modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php on line 930\nWarning: Trying to access array offset on value of type null in /var/www/html/web/modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php on line 930

Steps to reproduce

Proposed resolution

Just testing that the variable is defined before accessing it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada phjou Vancouver πŸ‡¨πŸ‡¦ πŸ‡ͺπŸ‡Ί

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