Expose Date Range Filter with missing min or max returns all results

Created on 9 March 2021, over 3 years ago
Updated 5 September 2024, 23 days ago

Problem/Motivation

I have a view which lists nodes by date. The view uses an exposed filter to let a user select a date range. If the min or max date is missing when the filters are applied, views returns all results.

Steps to reproduce

  1. Set up a view which exposed a date range filter (operator = "Is Between").
  2. If both Min & Max date are entered, results are returned within the range selected. If either are missing, all results are returned.

I would expect that Min; No Max would return all results from Min onward and Max; No Min would return all results up to Max. This has caused some of my users some consternation as we are using BEF to automatically trigger an update on filter changes.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States SuperfluousApostrophe

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024