Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3, 3.4
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE
-
MDL-58994-master -
-
3.4 on-sync
Description
The get_events method in the event vault orders events by timesort and id. Not all events have timesort set (site and user events, for example) so in these cases the events end up sorted by ID.
calendar_get_legacy_events is intended to be a drop in replacement for calendar_get_events but also take in to consideration action events, so it uses all the new plumbing but maps the returned events back to the old "stdClass-ish" ones.
The problem is that the original calendar_get_events sorted events on timestart - so everything always sorted properly, but now it ends up on ID since {{timesort} is null.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-71565 Calendar events sorting by date but not time
-
- Open
-