Filter allows filtering dates different from the configured date filter

Created on 20 May 2024, 7 months ago
Updated 14 June 2024, 6 months ago

Problem/Motivation

I have two views in Drupal 10.2.3 for event content: one for upcoming events and one for past events.

  • Upcoming events view shows events from today onwards.
  • Past events view shows events before today.

The problem is that the date filter allows searching for future years in the past events view and past years in the upcoming events view.

Is this behavior normal for this filter?
Can I configure it to only allow searching within the appropriate date range, or should I create a custom solution? If so, what options do you suggest?

🐛 Bug report
Status

Closed: won't fix

Version

2.1

Component

User interface

Created by

🇦🇷Argentina alekas

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

Comments & Activities

  • Issue created by @alekas
  • 🇫🇷France berramou

    Hello @alekas thank you for your report.

    Is this behavior normal for this filter?

    Yes this module allows you search in all content event if they are in the past, your issue is not related to this module.
    You need to add another condition to your views, for example in the upcoming events view should ad Filter criteria the pull only content with date after today and the do the same with Past events.
    If you do so and place the filter in your views will give you the right results.

  • Status changed to Closed: won't fix 6 months ago
Production build 0.71.5 2024