Skip to content

Bugfix/duration events after start - #642

Open
hojalatheef wants to merge 5 commits into
mainfrom
bugfix/duration-events-after-start
Open

hojalatheef wants to merge 5 commits into
mainfrom
bugfix/duration-events-after-start

Conversation

@hojalatheef

Copy link
Copy Markdown
Contributor

No description provided.

It is not possible to take part in a duration event after it has
started. As the date constraint of the list types was applied to
day_time only, the next remaining day of an already started duration
event was still found. The event was listed with the date of today,
but sorted by sort_day_time, which contains its first day, so it was
also shown on top of the list.

Restrict sort_day_time to the start of the list type, too. As
sort_day_time is equal to day_time for all other event types, only
duration events are affected.

Bump version to 10.2.13 and add ChangeLog entry.
The calendar highlighted all days of a duration event, although it is
only possible to take part on its first day. Further, the list does not
show a duration event for any of the following days, so clicking such
a highlighted day resulted in an empty list.

Only return the first day of duration events in getDaysInRange(). That
is the day record where day_time equals sort_day_time.
Cover started duration events for all list types, a duration event
starting today, a started duration event next to other events and the
calendar click on the first and a following day of a duration event.

For the calendar, cover a duration event which has started in the
previous month and a duration event with a time record.
…arch

Like the list types, the search applied its date constraint to
day_time only and still found already started duration events with the
date of their next remaining day.

Move the constraint for sort_day_time into its own method and use it
for the search, too.
…tings

Cover a duration event starting today without recurringPast, where the
list begins at the standardized "now", and started and upcoming
duration events for each merge setting of the list plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant