-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.3, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
Steps to reproduce & observed behaviour:
- Create a course with two activities required for course completion.
- Create 3 users, enroll them and let them complete one of those 2 activities.
- Now delete the one activity they haven't completed yet.
- After the first cron run, the criteria will be erased from db table course_completion_criteria, but the users will not be marked with a reaggregate value > 0 in the course_completions table, also their timecompleted timestamp stays NULL. They are therefore never touched again and in the course completion report shown as not completed even though the required activity is ticked as completed.
Either one of those behaviours would be expected:
- You shouldn't be able to delete a required activity.
- The cron task which deletes the criteria should also mark the course_completions entries for reaggregation, so they don't stay in this orphaned state of timstamp NULL and reaggregate 0 with completion entry in course_completion_crit_compl for the remaining required activity.
In the underlying case the customer was scared to unlock completion settings and considered it as less dangerous to just delete the activity, which raises no warning whatsoever.
- has been marked as being related by
-
MDL-66798 Cannot find data record in database table course for course completion when the course required has been deleted
-
- Closed
-