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
- Go to site administration -> badges -> Manage badges and create a badge.
- Then add a "completing a set of courses" criteria to that batch.
- The system should offer you the possibility of selecting course 1 or 2 but it also offers course 3 as a valid option.
- Add course 3 to the completing course set
- The system must check the completion setting of that course before saving that preference.
The first bol issue is related to
MDL-68315 but the second one must be solved apart.