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

Essay question "Accepted file types" field not supported in Question XML file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.12, 3.6.10, 3.7.6, 3.8.3, 3.9
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      The "Accepted file types" field was added to the Essay question in version 3.5. However, the XML import/export facility was not updated to support this new field. The steps to reproduce are as follows. 

      1. Go to a course and navigate into the Course > Question bank page.
      2. In the Question bank > Categories page, create a new category "Essay File Types".
      3. Go to the Question bank > Questions page, select the "Essay File Types" category, and create a new Essay question.
      4. Fill in the required fields, set the "Accepted file types" field to ".docx", and save the question.
      5. Go to the Question bank > Export page, select the File format as "Moodle XML format", select the category "Essay File Types" in the "Export category" field, and click the "Export questions to file" button. The Essay question will be downloaded to a text file in XML format.
      6. Open the file in a text editor and inspect the XML for the essay question. There is no element "<acceptedfiletypes>" or similar, so the export facility doesn't handle it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              campbeeo@tcd.ie Eoin Campbell
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: