Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.11.6, 4.0
-
None
-
MOODLE_311_STABLE, MOODLE_400_STABLE
Description
Problem
If an activity is included in a course's completion criteria, and then the activity type is disabled at the site level, the Course Completion Report throws and error:
Exception - Call to a member function get_formatted_name() on null
Expected behavior
A site admin should be able disable activities and either 1) silently skip the disabled activity in completion requirements or 2) warn the user that some required activities are not available.
Steps to reproduce
- In a course with at least one student
- Add a chat Activity
- Select it under condition: Activity Completion in the Course Completion criteria
- In site administration, under Plugins > Activity Modules > Manage Activities,
- Disable the chat activity
- Return to the course and verify the activity is not present
- Check that it also cannot be deselected (it does not appear) in the Completion Criteria settings
- View Reports > Course Completion and get an error ('Call to a member function get_formatted_name() on null')