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

Multianswer question import format is broken in Moodle 2.2 and master

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.4, 2.3.1, 2.4
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      1. Try to import the file that you can find at question/format/multianswer/tests/fixtures/questions.multianswer.txt in the code-base. There should be no errors.

      2. Preview the question (it is the Match the following cities with the correct state... one from http://docs.moodle.org/23/en/Embedded_Answers_%28Cloze%29_question_type). Make sure it works properly.

      Show
      1. Try to import the file that you can find at question/format/multianswer/tests/fixtures/questions.multianswer.txt in the code-base. There should be no errors. 2. Preview the question (it is the Match the following cities with the correct state... one from http://docs.moodle.org/23/en/Embedded_Answers_%28Cloze%29_question_type ). Make sure it works properly.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When you try to import a multianswer question using the multianswer format (not gift format, multianswer format) you get :
      Fatal error: Call to undefined function qtype_multianswer_extract_question() in xxxxxxxxxx\question\format\multianswer\format.php
      This is because the protected function readquestions($lines) { is missing a
      question_bank::get_qtype('multianswer');
      Apparently this import format is rarely used because nobody has reported that it is broken for months !!

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12