-
Bug
-
Resolution: Fixed
-
Major
-
2.4.5, 2.6, 2.7
-
MOODLE_24_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-43274-master -
-
8
-
BACKEND Sprint 13
We have a scenario:
A number of course activities disappeared, and there are no logs at all in the class from before the 22nd November.
where the most plausible explanation is that:
The activites were deleted and (only) the course logs reset
From my reading of the reset_course_userdata() function the logs from mdl_log are hard deleted, using the $DB->delete_records() function.
This makes trying to answer what actually happened very difficult from a forensic position.
It would be preferable if either the log table rows were treated by Moodle as being immutable or if the reset function did something else.
This may be an issue specific to us since we have a centralised service and we have to be able to explain to our teachers what it is they may have done.