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

Notice while importing questions in lesson

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.7.8, 2.8.6, 2.9
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a cloze question in the questionbank. You can use something like this:

        {1:SHORTANSWER:=Berlin} is the capital of Germany.
        

      2. Export the question in the Moodle XML format.
      3. Create a new lesson.
      4. Import the question. Make sure to change the file format to Moodle XML.
      5. Ensure that there is no notice about an undefined property. You should see a warning that unsupported question types were not imported.
      6. Now try to import the file back into the question bank.
      7. Everything should import correctly.
      Show
      Create a cloze question in the questionbank. You can use something like this: {1:SHORTANSWER:=Berlin} is the capital of Germany. Export the question in the Moodle XML format. Create a new lesson. Import the question. Make sure to change the file format to Moodle XML. Ensure that there is no notice about an undefined property. You should see a warning that unsupported question types were not imported. Now try to import the file back into the question bank. Everything should import correctly.
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-49880-master
    • Sprint:
      Team '; drop tables Sprint 6

      Description

      Found while completing MDLQA-7902

      Notice: Undefined property: qformat_xml::$course in /var/www/vhosts/qa.moodle.net/html/question/format/xml/format.php on line 457

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15