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.
Issue fork views_daterange_filters-3500822
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:
- feature/views_date_recur
changes, plain diff MR !2
- 3500822-overlaps-operator-not
compare
Comments
Comment #1
kaleemullah924 commentedI 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.
Comment #3
kaleemullah924 commentedComment #4
kaleemullah924 commentedComment #6
mably commentedThe unneeded patch file should be removed.
Comment #7
mably commentedComment #10
mably commented