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

cloze question restore error problem

XMLWordPrintable

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

      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

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.