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

Imported Cloze questions lose embedded images or other media

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3.7, 2.4.4
    • 2.3.4
    • Questions
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • 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 ).

      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.

            jmvedrine Jean-Michel Vedrine
            pwray Paul Wray (Inactive)
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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