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

Course Reset for Questionnaire does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.2
    • 2.6.3
    • Module: Questionnaire
    • None
    •  2.6.4 (Build - 2014033100)
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE

    Description

      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.

      Attachments

        Activity

          People

            rezeau Joseph Rézeau
            heather.williams Heather Williams
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/May/14