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

Imported Cloze questions lose embedded images or other media

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.4
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Test that embedded images are not lost during import of multianswer (cloze) questions

      In a course go to Question bank -> Import and import the question/format/xml/test/fixtures/multianswer.xml file selecting Moodle XML format for import.
      Verify that there is no error or warning during import and that a single multianswer (cloze) question is imported with 2 images (Arizona and California flags) in the question text and a small Moodle logo image in the general feedback.

      Test that old Moodle 1.9 image tag is imported correctly

      Import the question/format/xml/test/fixtures/sample_questions_with_old_image_tag.xml file selecting Moodle XML format for import.
      Verify that there is no error or warning during import and that 2 questions are imported: a multichoice and a multianswer (cloze) question. Verify that both questions have a small Moodle logo at the end of the question text (Of course for the multianswer question, end of question text means end of question and for multichoice it means before the stems but that is the expected result ).

      Show
      Test that embedded images are not lost during import of multianswer (cloze) questions In a course go to Question bank -> Import and import the question/format/xml/test/fixtures/multianswer.xml file selecting Moodle XML format for import. Verify that there is no error or warning during import and that a single multianswer (cloze) question is imported with 2 images (Arizona and California flags) in the question text and a small Moodle logo image in the general feedback. Test that old Moodle 1.9 image tag is imported correctly Import the question/format/xml/test/fixtures/sample_questions_with_old_image_tag.xml file selecting Moodle XML format for import. Verify that there is no error or warning during import and that 2 questions are imported: a multichoice and a multianswer (cloze) question. Verify that both questions have a small Moodle logo at the end of the question text (Of course for the multianswer question, end of question text means end of question and for multichoice it means before the stems but that is the expected result ).
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:

      Description

      This appears to be a return of MDL-32865.
      If a Cloze question is created with embedded media, exported, and re-imported, the media is lost.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmvedrine Jean-Michel Vedrine
              Reporter:
              pwray Paul Wray
              Peer reviewer:
              Tim Hunt
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/13