Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7.5, 3.8.2, 3.9, 3.9.9, 3.10.6, 3.11.2, 4.0
Description
How to reproduce:
- Make sure course completion is enabled on the site.
- Create 3 courses with following completion tracking settings:
- Course 1 - completion tracking enabled
- Course 2 - completion tracking enabled
- Course 3 - completion tracking disabled, note ID of the course.
- In Course 1, navigate to "Edit" -> "Course completion", expand "Condition: Completion of other courses".
- Press on "Courses available" search dialog, observe that you can only see "Course 2"
- Select "Course 2"
- Open dev tool, find "select" element with name="criteria_course[]", replace value for "Course 2" option with ID from "Course 3", save the form.
- In Course 1, navigate to "Edit" -> "Course completion", expand "Condition: Completion of other courses", observe that currently selected course is "Course 3"
This has been discovered while writing a testing instruction for MDL-68315 (in order to replicate issue you can follow that test instruction). Basically the issue is partially results from MDL-68315 (Course form element does not respect 'onlywithcompletion' attribute), but in addition to that verification is missing on submission which ideally should check that selected courses have got completion enabled.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-68005 'Complete another course' isn't performing enough sanity checks, resulting in broken database records and an inability to view the completion report.
-
- Closed
-
- will be (partly) resolved by
-
MDL-68315 Course form element does not respect 'onlywithcompletion' attribute.
-
- Closed
-