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

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

XMLWordPrintable

    • 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.

      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.

       

        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

            HuongNV Huong Nguyen
            kanna Anna Krassa
            Tim Hunt Tim Hunt
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            8 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.