"Between" filters cannot be made collapsible

Created on 15 May 2025, 16 days ago

Problem/Motivation

A filter with operator "between" is not made collapsible when that option is chosen.

Steps to reproduce

  • Add a date filter to a view with operator "between".
  • Mark that filter as collapsible in the exposed form settings.
  • Observe that when the filter is rendered, it is still not collapsible.

Proposed resolution

My original filter's key is date. In FilterWidgetBase::exposedFormAlter(), it's checking if $form['date'] exists before adding the details element. But I find that my $form['date'] filter has already been replaced with $form['date_wrapper'] before this method runs, so that check fails and the details element is never added. This part of the code is immediately followed by some logic to handle _wrapper keys, so perhaps that logic needs to be changed and/or moved higher in the file?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Lanny Heidbreder

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

Comments & Activities

Production build 0.71.5 2024