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

cloze question restore error problem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.3, 1.7
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/06