Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-5601

cloze question restore error problem

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.6.1
    • 1.6.3, 1.7
    • Quiz
    • None
    • All
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE

    Description

      I am currently testing backup/restore of my courses from Moodle 1.5 (on a distant site) to Moodle 1.6 (on my local install). In my 1.5 courses I have a number of questions of the Cloze type. Because the handling of quizzes and questions has beeen changed in 1.6, and because the Cloze-type questions are special, there is a special test in \question\type\multianswer\questiontype.php which yields error messages. Unfortunately, when these error messages are generated during the restoration of a course, the restoration STOPS! This is a serious problem, and I suggest replacing the error report with a notify report, which will still display the error messages but will allow the restore process to continue. I prefer this, because, once the restore process is over, I can alway edit the multianswer questions one by one and make them work.

      \question\type\multianswer\questiontype.php

      around line 535

      replace

      error(The cloze question $state->question is missing its options);

      and

      error(Can't find the subquestion $wrappedquestionid that is used as part $seqnum in cloze question $state->question);

      with

      notify(The cloze question $state->question is missing its options);

      and

      notify(Can't find the subquestion $wrappedquestionid that is used as part $seqnum in cloze question $state->question);

      Thanks!

      Joseph

      Attachments

        Activity

          People

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Oct/06