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

Drag and drop questions do not display drop zones if group numbers are not used consecutively

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.6.1, 3.7
    • 3.6.2
    • Questions
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE
    • Hide

      Drag-drop onto image

      1. Create a new drag-drop onto image question.
      2. Set the question name to "MDL-64479 ddtoimage" and the question text to "Complete the blank"
      3. Create two dragable items, type text, "Right" and "Wrong". Set them both to belong to Group 2.
      4. Create a drop zone with right answer "Right"
      5. Save the question.
      6. Preview it.
      7. Verify that you can answer the question.

      Drag-drop into text

      1. Create a new drag-drop into text question
      2. Set the question name to "MDL-64479 ddtotext" and the question text to "Complete the blank [[1]]"
      3. Create two dragable items, type text, "Right" and "Wrong". Set them both to belong to Group 2.
      4. Create a drop zone with right answer "Right"
      5. Save the question.
      6. Preview it.
      7. Verify that you can answer the question.
      Show
      Drag-drop onto image Create a new drag-drop onto image question. Set the question name to " MDL-64479 ddtoimage" and the question text to "Complete the blank" Create two dragable items, type text, "Right" and "Wrong". Set them both to belong to Group 2. Create a drop zone with right answer "Right" Save the question. Preview it. Verify that you can answer the question. Drag-drop into text Create a new drag-drop into text question Set the question name to " MDL-64479 ddtotext" and the question text to "Complete the blank [ [1] ]" Create two dragable items, type text, "Right" and "Wrong". Set them both to belong to Group 2. Create a drop zone with right answer "Right" Save the question. Preview it. Verify that you can answer the question.

    Description

      After upgrading to Moodle 3.6, drag-drop onto image questions do not work unless they use group numbers in order starting from 1. See screen grabs for what the failures look like.

      Steps to reproduce:

      1. Create a new drad-drop onto image question.
      2. Set the question naem to MDL-64479 and the question text to "Complete the blank"
      3. Create two dragable items, type text, "Handle" and "Spanner". Set them both to belong to Group 2.
      4. Create a drop zone with right answer "Handle"
      5. Save the question.
      6. Preview it.

      Expected result: the question works.
      Acutal result: no drop zones appear on the image.

      Note: there are no error messages in the JavaScript console.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              petko81 Peter Svec
              Shamim Rezaie Shamim Rezaie
              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
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jan/19

                Time Tracking

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