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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13