Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4274

Questionnaire 'completion tracking: require grade' + 'no grade' causes error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.4.3
    • Module: Questionnaire
    • None
    • MOODLE_24_STABLE
    • MOODLE_25_STABLE

      Edit the settings for a questionnaire and set the 'Grade' to 'No grade', then set the 'Completion tracking' to 'Show activity as complete when conditions are met' and tick the 'Student must receive a grade to complete this activity'.

      When you save the form, you receive the following error:
      An internal error occurred in the completion system. (System administrators can enable debugging information to see more detail.)

      Debug info: Cannot find grade item for 'questionnaire'
      cm '104' matching number '0'
      Error code: err_system
      Stack trace:
      line 1256 of /lib/completionlib.php: moodle_exception thrown
      line 584 of /lib/completionlib.php: call to completion_info->internal_systemerror()
      line 517 of /lib/completionlib.php: call to completion_info->internal_get_state()
      line 821 of /lib/completionlib.php: call to completion_info->update_state()
      line 388 of /course/modedit.php: call to completion_info->reset_all_state()

      Obviously, this is a silly combination of settings from the end user, but it would be nice if there was a helpful warning message, instead of a fatal error.

            rezeau Joseph Rézeau
            davosmith Davo Smith
            Mike Churchward Mike Churchward
            Davo Smith Davo Smith
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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