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

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

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-69266-310
    • Pull Master Branch:
      MDL-69266-master

      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
          04.png
          66 kB
        2. 05.png
          05.png
          62 kB
        3. 06.png
          06.png
          62 kB
        4. 07.png
          07.png
          67 kB
        5. answer_being_duplicated.png
          answer_being_duplicated.png
          17 kB
        6. DragNdrop_fillincorrectresponses.png
          DragNdrop_fillincorrectresponses.png
          82 kB
        7. DragNdrop_fillincorrectresponses2.png
          DragNdrop_fillincorrectresponses2.png
          79 kB
        8. image-2020-10-16-10-35-12-223.png
          image-2020-10-16-10-35-12-223.png
          86 kB

          Issue Links

            Activity

              People

              Assignee:
              HuongNV Huong Nguyen
              Reporter:
              kanna Anna Krassa
              Peer reviewer:
              Tim Hunt
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              8 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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