-
Bug
-
Resolution: Fixed
-
Major
-
3.11.7, 3.11.12, 4.0.1, 4.0.6, 4.1, 4.1.1
Restricting access to a course module by using "activity completion" and "Previous activity with completion" does not work, when activity completion of current module is disabled.
Steps to reproduce:
- Create course.
- As teacher create two activites, for example assignments (also tested with labels, seems to not depend on type of activity): assignment1, assignment2
- assignment2 has to be directly below assignment1
- assignment1: "Activity completion" -> "Students can manually mark this activity as completed"
- assignment2: "Restrict access" -> "Activity completion" -> "Previous activity with completion"
- Now the important part: assignment2 -> "Activity completion" -> "Do not indicate Activity completion"
- Enrol a student in this course
- Log in as student of this course. Mark assignment1 as completed. You will not have access to assignment2 -> Bug!
This does not happen, if you explicitely specify assignment1 as dependency for assignment2, it only happens if you use "Previous activity with completion".
Another strange thing:
If you mark activity1 as "completed" not as student, but by switching role from teacher to student and then change back to your teacher role, you will see activity2 labeled with "Not available unless: The activity (Missing activity) is marked complete (hidden otherwise)" -> this also should not happen.
Tested this on 4.0.1 as well as 3.11.6, versions 3.11.7 and previous versions probably also affected.