-
Bug
-
Resolution: Fixed
-
Blocker
-
3.9.5, 3.10.2
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-71156-master -
-
2
-
Internationals - 3.11 Sprint 9
The short version is that the upgrade step sets the userid to 0 for all events with an eventtype other than user (see here). But the problem is that overrides need a userid, and have an eventtype determined by the plugin (like open, close, or due). And the core code behavior is still correct after MDL-67494 (see here), but it's update step specifically corrupts those events.
This specifically effect quiz, lesson, and assign.
Steps to reproduce:
- In 3.10.1, create a hidden quiz with a close date in the future.
- Add an override for that user changing the close date.
- Upgrade to 3.10.2
- Attempt to unhide the quiz
- You will get an invalid user error
Basically the update step leaves override events with a userid, courseid, categoryid, and groupid all set to 0, which break various things (because of poor error handling in calendar, documented in MDL-70097 I think).
- has a non-specific relationship to
-
MDL-71193 Course/activity calendar events are deleted when the teacher who created them requests their data to be deleted (Part 2)
- Open
-
MDL-71075 unit tests failure from latest calendar/data request changes
- Closed
-
MDL-70097 Error code: invaliduser
- Closed
- is a regression caused by
-
MDL-67494 Course/activity calendar events are deleted when the teacher who created them requests their data to be deleted
- Closed
- Testing discovered
-
MDL-71286 Investigate and fix xxx_update_events() behavior with group override events
- Open
- will be (partly) resolved by
-
MDL-71182 Revert latest calendar/data request changes (revert MDL-67494)
- Closed