To reproduce:
- go to a course as a teacher
- Press on the "Restore" in the block "settings"
- Choose a restore file (.mbz, in attachment)
- Press "continue"
- Select "Delete the contents of the existing course and restore"
- Select a course
- Press "continue"
- Press "next"
- Press on "perform the restoration"
The result is that the course is not restored, the old version is now broken, context error message with developper mode set to ON, and all the users, including the teachers are kicked out of the course. here below the error after the restoration:
line 429 of /lib/setuplib.php: moodle_exception thrown
|
line 2796 of /lib/questionlib.php: call to print_error()
|
line 587 of /lib/questionlib.php: call to question_require_capability_on()
|
line 651 of /lib/questionlib.php: call to delete_question()
|
line 4072 of /lib/moodlelib.php: call to question_delete_course()
|
line 1359 of /backup/util/dbops/restore_dbops.class.php: call to remove_course_contents()
|
line 142 of /backup/util/ui/restore_ui.class.php: call to restore_dbops::delete_course_content()
|
line 39 of /backup/restore.php: call to restore_ui->execute()
|
- will be (partly) resolved by
-
MDL-27233 Performing the restore of a course, from a teacher's perspective, flushs the role assignements
-
- Closed
-