- Issue created by @joelpittet
- Merge request !56Resolve #3518068 "Daterecurbasicformatter filters out" → (Open) created by joelpittet
- 🇨🇦Canada joelpittet Vancouver
Needs review from a path forward/proposal perspective, I know it needs tests still.
The getOccurrences()
method in DateRecurHelperInterface
is called with the first argument set to now
within the date_recur_basic_formatter
.
This causes all past occurrences to be filtered out, which is problematic when the field is rendered in a context like a Calendar View
where all (past and future) occurrences for a given date_recur
field should be shown, then looking at a past event, the field_date will have 0
occurrences and will not show the date at all because the template will not have anything to show.
This behaviour makes it tricky to view historical event times, limiting the usefulness of the formatter for date-based views.
date_recur
field using the basic formatter.Make this configurable, or just show all (NULL start date)
date_recur_basic_formatter
to avoid using now
as the default start date.Potentially a new setting in the formatter to control how occurrences are filtered.
None expected.
None.
The date_recur_basic_formatter
now displays all applicable occurrences, including past ones, making it more suitable for use in Calendar Views.
Active
3.9
Code
Needs review from a path forward/proposal perspective, I know it needs tests still.