-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
4.5.2, 5.0
-
MOODLE_405_STABLE, MOODLE_500_STABLE
-
-
In the lib/completionlib.php file, there exists a function delete_all_state that does not, despite it's name, delete all the state records for an activity. The method immediately above it, "delete_all_completion_data" deletes all records from course_modules_completion and course_modules_viewed tables, however "delete_all_state" does not. The failure to delete records from course_modules_viewed means that viewed data is left behind when course modules are reset. This can cause problems after the module is reset because other parts of Moodle seem to expect records to exist in either just the completion table, or both tables or neither table.