-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
4.1.6, 4.2.3, 4.3
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
If you try to restore a backup of an activity with user completions, but without users it can't map the userids and defaults to 0.
This causes moodle to try to insert invalid records into mdl_course_modules_viewed and other tables with 0 as the userid. Instead it should just early return in restore_userscompletion_structure_step::process_completion()