-
Bug
-
Resolution: Fixed
-
Major
-
3.4, 3.4 regressions
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-60813-master -
In --, some code was introduced to return category events in core_calendar_get_calendar_events. However, the category events cannot be received by students.MDL-60628
The reason is that the event mapper doesn't return categoryid for the events (see here). Since events don't have categoryid, this condition isn't fulfilled and the events are filtered.
I checked the unit tests that were added for this and they are wrong. The event received by the student in this test is "site", and the events received by the admin in this test are "site" and "user".