-
Bug
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MDL-58822-master -
When backing up and restoring a course with a lesson activity the calendar events are not restored correctly.
There are two problems:
- The type column doesn't appear to be getting preserved, so action events (type: 1) are being restored as regular events (type: 0)
- The calendar events for user overrides are not being restored (however the actual user overrides in lesson_overrides are being restored).
To replicate:
- Create a course
- Enrol a user in that course
- Create a lesson activity with a due date
- Add a user override for the enrolled user and extend the due date
- Backup the course (including all of the user data)
- Restore the backup into a new course (include the user data)
- Log in as the user and view your dashboard and see that only the event for the original lesson is visible
- Log in as admin and go to the restored lesson and see that the user override has been restored
- View the database and see that in the event table the original lesson event has been duplicated for the restored activity however it's type column is set to 0 instead of 1
- Notice that there isn't a duplicated record for the user override (however the original one still exists)
- caused a regression
-
MDL-58904 Moodle 3.3 restore (possibly) broken - events
- Closed
-
MDL-59011 Restore broken for 3.4/3.3
- Closed
- Discovered while testing
-
MDLQA-10841 CLONE - Override option in lesson works as expected
- Passed