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

Question type Drag and drop into text undefined notice for gap in question and answer slot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6, 3.7.5, 3.8.2
    • Fix Version/s: 3.8.4
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course.
      2. Go to the question bank.
      3. Click Add a new question link.
      4. Select Drag and drop into text.
      5. Fill in the form:
        • Question name: Test question
        • Question text: The [[1]] sat on the [[3]].
        • Choice 1 Answer: cat
        • Choice 2 Answer: [leave this blank/empty]
        • Choice 3 Answer: mat
      6. Click Save changes.
      7. Choose the 'Preview' action for the question.
      8. Verify the question displays without errors, and you can get it right.
      9. Close the preview tab.
      10. Choose the 'Edit question' action for the question.
      11. Verify that the question now has question text: The [[1]] sat on the [[2]].
      12. Verify lower down the form, the two choices are now in spaces 1 and 2.

      Repeat these steps with the 'Select missing words' question type. (You can start at step 3.)

      Show
      Create a course. Go to the question bank. Click Add a new question link. Select Drag and drop into text. Fill in the form: Question name: Test question Question text: The [ [1] ] sat on the [ [3] ]. Choice 1 Answer: cat Choice 2 Answer: [leave this blank/empty] Choice 3 Answer: mat Click Save changes. Choose the 'Preview' action for the question. Verify the question displays without errors, and you can get it right. Close the preview tab. Choose the 'Edit question' action for the question. Verify that the question now has question text: The [ [1] ] sat on the [ [2] ]. Verify lower down the form, the two choices are now in spaces 1 and 2. Repeat these steps with the 'Select missing words' question type. (You can start at step 3.)
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull 3.7 Branch:
    • Pull 3.8 Branch:
    • Pull Master Branch:

      Description

      In a Drag and Drop Into Text question type, a user can can add question answer slot by accidentally or intentionally leaving a gap. An example of which can be:

      Question name: DDiT
      Question text: The colours [[1]] and [[3]] are primary colours.
      Choice 1 Answer: Yellow
      Choice 2 Answer: [leave this blank/empty]
      Choice 3 Answer: Blue

      When this question is saved. The actual answers saved are only Choice1[Yellow] and Choice2[Blue]. Note that Blue was moved from 3 to 2.

      This causes a mismatch in the slot and answer as the question text still expects [[1]] and [[3]]. 

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            jebarvia Joshua Ebarvia
            Peer reviewer:
            Mark Johnson
            Integrator:
            Adrian Greeve
            Tester:
            Amaia Anabitarte
            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/Jul/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 20 minutes
                3h 20m