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

Course Reset for Questionnaire does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.3
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Plugin Version:
       2.6.4 (Build - 2014033100)
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14