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

Essay question: min and max word limits not imported correctly from Moodle XML files

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11, 4.0
    • 3.11
    • Questions
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-70916_311
    • Hide
      1. Logged in as teacher/admin
      2. Go to the question bank in any course.
      3. Create a new essay question and set one or both of the min/max word limits.
      4. Save the question.
      5. In the questoin bank, choose Export as Moodle XML in the edit menu for that question.
      6. Go to the question bank in another course.
      7. Import the file you just exported.
      8. Edit the imported question (so you can see all the settings).
      9. Verify that the the min/max word limit settings have been copied correctly.
      Show
      Logged in as teacher/admin Go to the question bank in any course. Create a new essay question and set one or both of the min/max word limits. Save the question. In the questoin bank, choose Export as Moodle XML in the edit menu for that question. Go to the question bank in another course. Import the file you just exported. Edit the imported question (so you can see all the settings). Verify that the the min/max word limit settings have been copied correctly.

    Description

      This is a mistake I made in MDL-69101. The import was not building the data structure that qtype_essay::save_question_options expected. Or, save_question_options was not correctly handling the data structure from Import, depending on how you want to look at it.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Mahmoud Kassaei Mahmoud Kassaei
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Anna Carissa Sadia Anna Carissa Sadia
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 40 minutes
                  40m