Problem/Motivation

The "Overlaps" operator in the Views Date Range Filter module works as expected with the "daterange" field type but does not support other field types, such as "date_recur." When adding a filter for the "date_recur" field type in the View's filter criteria, the "Overlaps" operator is not available in the operator list.

Steps to reproduce

1) Create a date_recur field in a content type.
2) Add this field to a View and configure a filter with the "Overlaps" operator.
3) Observe that the operator not available in operator list but showing with filter for the "daterange" field type.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kaleemullah924’s picture

I have included a condition for the 'date_recur' field type. It now checks whether the field type is 'daterange' or 'date_recur' and assigns the "Overlaps" operator accordingly.

kaleemullah924’s picture

Assigned: Unassigned » kaleemullah924
kaleemullah924’s picture

Assigned: kaleemullah924 » Unassigned
Status: Active » Needs review

mably made their first commit to this issue’s fork.

mably’s picture

Status: Needs review » Needs work

The unneeded patch file should be removed.

mably’s picture

Issue summary: View changes

mably changed the visibility of the branch 3500822-overlaps-operator-not to hidden.

  • mably committed f5c7e0f1 on 2.x authored by kaleemullah924
    feat: #3500822 "Overlaps" Operator Not Supported for 'date_recur' Field...
mably’s picture

Version: 8.x-1.0-alpha2 » 2.x-dev
Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.