-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.2
-
None
-
2.6.4 (Build - 2014033100)
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
When trying to reset questionnaires in a course the following error is displayed:
Debug info:
|
|
[array (
|
)]
|
Error code: dmlreadexception
|
Stack trace:
|
|
line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
|
line 996 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
|
line 495 of /mod/questionnaire/locallib.php: call to mysqli_native_moodle_database->get_records_sql()
|
line 1082 of /mod/questionnaire/lib.php: call to questionnaire_get_survey_list()
|
line 5447 of /lib/moodlelib.php: call to questionnaire_reset_userdata()
|
line 74 of /course/reset.php: call to reset_course_userdata()
|
I can manually delete questionnaire responses by going into each questionnaire, viewing responses, and then deleting responses, but I can not use the course reset feature to do that.
To replicate, create a course with questionnaire and give the questionnaire some responses. Go to course reset and select "delete all questionnaire responses" and hit Reset Course.