-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.7.3
-
None
-
2019072700
-
MOODLE_37_STABLE
Steps to replicate:
- Create test course
- Enrol a test student
- Add the Completion Progress block to the course
- Create a Label resource and ensure it is set to 'allow students to manually mark as complete'
- Go back to the course page, find the Completion Progress block and click 'Overview of students'
- For the test student, click the link (rectangle) corresponding to the label resource
Expected behaviour:
User is taken to the course page anchored at the label in question
Observed behaviour:
User receives error 'A required parameter (instanceid) was missing'
Stack trace:
- line 494 of /lib/setuplib.php: moodle_exception thrown
- line 568 of /lib/moodlelib.php: call to print_error()
- line 38 of /blocks/completion_progress/overview.php: call to required_param()
Additional notes:
If for whatever reason it isn't possible to link to the label resource within the course page, at the very least the user shouldn't be presented with a code-level error message.