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

Quiz with activity completion - "Or all available attempts completed" with unlimited attempts breaks the completion process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 3.1, 3.6.4, 3.7, 3.8
    • Fix Version/s: 3.6.5, 3.7.1
    • Component/s: Quiz
    • Testing Instructions:
      Hide

      1. Add a new course or edit settings of an existing course.
      2. Ensure that Completion tracking is enabled.
      3. Add a new Quiz activity.
      4. In quiz settings > Activity completion, select ALL of these checkboxes

      • Student must receive a grade to complete this activity
      • Require passing grade
      • Or all available attempts completed.

      5. Save the settings.
      6. Edit quiz settings again and uncheck "Require passing grade". Save.
      7. Edit quiz settings again and verify that disabled checkbox "Or all available attempts completed" is unchecked.
      8. Do steps 4 and 5 again.
      9. Edit the settings and this time uncheck "Student must receive a grade to complete this activity". Save.
      10. Edit quiz settings again and verify that disabled checkboxes "Require passing grade" and "Or all available attempts completed" are unchecked.

      Show
      1. Add a new course or edit settings of an existing course. 2. Ensure that Completion tracking is enabled. 3. Add a new Quiz activity. 4. In quiz settings > Activity completion, select ALL of these checkboxes Student must receive a grade to complete this activity Require passing grade Or all available attempts completed. 5. Save the settings. 6. Edit quiz settings again and uncheck "Require passing grade". Save. 7. Edit quiz settings again and verify that disabled checkbox "Or all available attempts completed" is unchecked. 8. Do steps 4 and 5 again. 9. Edit the settings and this time uncheck "Student must receive a grade to complete this activity". Save. 10. Edit quiz settings again and verify that disabled checkboxes "Require passing grade" and "Or all available attempts completed" are unchecked.
    • Workaround:
      Hide

      Recreate the Quiz from scratch and make sure you don't check the option again.

      Show
      Recreate the Quiz from scratch and make sure you don't check the option again.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:

      Description

      This bug is still present in 3.1. I originally tested on our institution's version 2.9.3.

      While testing activity completion with badges, I came across a troublesome bug with Quiz:

      In the Quiz settings, when you activate "Or all available attempts completed" but you also have an unlimited attempts allowed, the students never earn the related badge because, obviously, there is no attempts limit, but then it gets worst. Once the "Or all available attempts completed" is checked, it can no longer be disabled (even though it is presented as grayish, meaning that it is deactivated). So, the teacher gets stuck with an activity completion that doesn't work properly. I tried duplicating the Quiz, deleting the completion data (in the Course Administration) and playing around with different options but to no avail. The check mark still remains.

      Thus, the only solution is to recreate the activity and make sure that I don't check the option again.

      Steps to reproduce:

      *Make sure that activity completion is activated in the course settings.

      1. As a teacher or admin, create a Quiz activity
      2. Set the Attempts limit to Unlimited
      3. In the Activity completion section, check "Student must receive a grade to complete this activity", "Require passing grade" and "Or all available attempts completed".
      4. Save.
      5. Go back to the Quiz settings and uncheck the "Require passing grade" and "Or all available attempts completed".
      6. Save.
      7. Go back again in the settings... the "Or all available attempts completed" is still checked, but it is grayish (supposed to be deactivated).
      8. As a student, complete the Quiz attempt.
        Result: no matter how many times you attempt the Quiz, it will never be completed because the "Or all available attempts completed" is stuck in the settings.

      I hope the description is clear for everyone, if not, don't hesitate to ask me some questions.

        Attachments

          Activity

            People

            • Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m