-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.3
-
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.
- has been marked as being related by
-
MDL-27302 Editing and saving a forum leads to "An internal error occurred in the completion system. ....Cannot find grade item for 'forum'"
-
- Closed
-
-
CONTRIB-3167 Questionnaire credit/no credit grading option always assign grade of "no credit"
-
- Closed
-