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

Drag and drop questions with 'unlimited' options fail in Moodle 3.9

    XMLWordPrintable

Details

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-69266-master
    • Hide
      1. Create a course.
      2. Go to Question bank
      3. Click Add a new question link.
      4. Select Drag n Drop into text question
      5. Fill in the form:
        • Name: Test questino
        • Text: One [[1]] Two [[2]] Three [[3]]
        • Choice 1 Answer: Option 1. (Unlimited checked)
        • Choice 2 Answer: Option 2. (Unlimited checked)
        • Choice 3 Answer: Option 3. (Unlimited NOT checked)
      6. Click Save changes.
      7. Go to question bank.
      8. Preview created question.
      9. Press Fill with correct answers.
      10. Observe the drag items home area
      11. Confirm that the drag home area contains the 2 unlimited options (Option 1, Option 2)
      12. Repeatedly drag Option 1/2 to the other text boxes.
      13. Confirm that they still appear in the drag home area.
      14. Confirm that they don't get duplicated in the drag home area.
      15. Drag Option 3 to one of the text boxes.
      16. Confirm that it doesn't appear in the drag home area after it's been dragged to a text box.
      17. Drag Option 3 out of a text box.
      18. Confirm that it appears back in the drag home area.
      Show
      Create a course. Go to Question bank Click Add a new question link. Select Drag n Drop into text question Fill in the form: Name: Test questino Text: One [ [1] ] Two [ [2] ] Three [ [3] ] Choice 1 Answer: Option 1. (Unlimited checked) Choice 2 Answer: Option 2. (Unlimited checked) Choice 3 Answer: Option 3. (Unlimited NOT checked) Click Save changes. Go to question bank. Preview created question. Press Fill with correct answers. Observe the drag items home area Confirm that the drag home area contains the 2 unlimited options (Option 1, Option 2) Repeatedly drag Option 1/2 to the other text boxes. Confirm that they still appear in the drag home area. Confirm that they don't get duplicated in the drag home area. Drag Option 3 to one of the text boxes. Confirm that it doesn't appear in the drag home area after it's been dragged to a text box. Drag Option 3 out of a text box. Confirm that it appears back in the drag home area.

    Description

      In a drag and drop into text question we have three dragable items, set to unlimited and five fields to be added. 

      When question is submitted, the three items appear only once. 

      To replicate the issue:

      1) Create a drag and drop into text question, with three dragable items set to unlimited and five spaces.

      2) Add the question in a quiz

      3) Take the quiz, filling it correctly

      4) Question will be marked as correct, but it will show only three items filled (each item will be used once)

      Expected behaviour: All field should be shown completed, some of the dragable items should have been used twice.

       

      Attachments

        1. 04.png
          66 kB
          Anna Krassa
        2. 05.png
          62 kB
          Anna Krassa
        3. 06.png
          62 kB
          Anna Krassa
        4. 07.png
          67 kB
          Anna Krassa
        5. answer_being_duplicated.png
          17 kB
          Jun Pataleta
        6. DragNdrop_fillincorrectresponses.png
          82 kB
          Anna Krassa
        7. DragNdrop_fillincorrectresponses2.png
          79 kB
          Anna Krassa
        8. image-2020-10-16-10-35-12-223.png
          86 kB
          Janelle Barcega

        Issue Links

          Activity

            People

              HuongNV Huong Nguyen
              kanna Anna Krassa
              Tim Hunt Tim Hunt
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              8 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/20

                Time Tracking

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