-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.5, 2.2.1, 2.3
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
master_
MDL-31914 -
Moderate
-
With course completion enabled and one or more activities tracked under course completion, the criteria for course completion are stored in the course_completion_criteria table.
If an activity is removed, then its entry in this table is never removed.
This doesn't cause an issue on most pages, but on the course completion report, this throws a number of errors and causes broken rendering of the course completion page.
I suggest that this fix:
- remove completion criteria when removing an activity/resource;
- tidies up existing 'broken' data; and
- improves checking on the report.
- Discovered while testing
-
MDL-32599 resync completion when using delete_course_module()
-
- Closed
-
- has been marked as being related by
-
MDL-32102 restore creates invalid course completion records
-
- Closed
-
- is duplicated by
-
MDL-32007 Course completion report shows deleted activities when activities are included in course completion criteria
-
- Closed
-