Skip to content

manager: Fix bug where recurring events shift after being edited

Ray Strode requested to merge fix-shifting-events into main

Right now if a user edits say event 3 in a set of 5 events, the whole event set gets shifted over by 3. It's as if the middle event is treated as the new first event.

This is because of a hack in the code to clear the recurrence id of the event, to get at the "main event", and edit the whole set. This hack still leaves the start time on the event, causing the main event to use a middle event start time.

This commit queries for the main event from the middle event, and sets the middle event start time to match the main event, before doing an update.

Closes #882 (closed)

Merge request reports