Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-74520

Course Completion Report Can't Be Viewed if Required Module is Disabled

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE

      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

      1. In a course with at least one student
      2. Add a chat Activity
      3. Select it under condition: Activity Completion in the Course Completion criteria
      4. In site administration, under Plugins > Activity Modules > Manage Activities,
      5. Disable the chat activity
      6. Return to the course and verify the activity is not present
      7. Check that it also cannot be deselected (it does not appear) in the Completion Criteria settings
      8. View Reports > Course Completion and get an error ('Call to a member function get_formatted_name() on null')

       

       

       

       

       

        1. chat_hide.png
          chat_hide.png
          68 kB
        2. image002.png
          image002.png
          96 kB
        3. report_course_completion.png
          report_course_completion.png
          52 kB
        4. Snag_7123a84.png
          Snag_7123a84.png
          45 kB

            Unassigned Unassigned
            benkahn Benjamin Kahn
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.