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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.6.2
    • 3.6.1, 3.7
    • 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.

      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.

        1. MDL-64479_DragDropIntoImage.jpg
          25 kB
          Anna Carissa Sadia
        2. MDL-64479_DragDropOntoImage.jpg
          35 kB
          Anna Carissa Sadia
        3. Screenshot 2019-01-01_17-52-57-587.png
          105 kB
          Peter Svec
        4. Screenshot 2019-01-07_20-50-28-280.png
          151 kB
          Peter Svec
        5. Screenshot 2019-01-07_20-51-20-989.png
          157 kB
          Peter Svec
        6. Screenshot 2019-01-07_20-52-04-860.png
          196 kB
          Peter Svec

            timhunt Tim Hunt
            petko81 Peter Svec (Inactive)
            Shamim Rezaie Shamim Rezaie
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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