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

Error deleting multiple (random) questions from quiz

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.3
    • 4.0.5
    • Quiz
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-75642-400
    • MDL-75642-master
    • Hide
      1. Login as Admin to the website
      2. Create a new quiz activity
      3. Add few questions from the question bank and some 'Random' questions
      4. Click on 'Select multiple items'
      5. Now either click on 'Select all' or could just select 'Random' questions
      6. Click on 'Delete selected' and Confirm - Yes. Verify that the question(s) are deleted
      7. Click on 'Add' and add a new question 

      Actual result: The deleted Random questions are again added back to the quiz
      Expected result: Only the newly added question should be added to the quiz.

      Show
      Login as Admin to the website Create a new quiz activity Add few questions from the question bank and some 'Random' questions Click on 'Select multiple items' Now either click on 'Select all' or could just select 'Random' questions Click on 'Delete selected' and Confirm - Yes. Verify that the question(s) are deleted Click on 'Add' and add a new question  Actual result: The deleted Random questions are again added back to the quiz Expected result: Only the newly added question should be added to the quiz.

    Description

      When editing (random) questions in a quiz, if you select multiple questions and click to delete them, they appear to have been deleted (because they disappear from the list), but 1. the number of questions has not updated 2. if you reload the page the deleted questions appear again.
       
      To reproduce the issue:

      1. Create a course
      2. Add a Quiz activity
      3. Add n random questions
      4. Clic on "Select multiple items"
      5. Choose one or more questions
      6. Clic on "Delete Selected"

       
      You can notice:

      1. selected questions are disappeared
      2. total questions number is not updated
      3. if you reload the page, deleted questions will be there again

      Attachments

        Issue Links

          Activity

            People

              khoand Khoa Nguyen Dang
              vittorio Vittorio Avallone
              Tim Hunt Tim Hunt
              Shamim Rezaie Shamim Rezaie
              Angelia Dela Cruz Angelia Dela Cruz
              Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Nov/22

                Time Tracking

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