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

A quiz with a maximum number of attempts can't be attempted again if the maximum has been reached and an attempt prior to the last one has been deleted.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Not related to the bug
    • Testing Instructions:
      Hide

      1-Create a quiz with a maximum of 2 attempts.
      2-As a student, complete both attempts.
      3-As a teacher, delete the first attempt.
      4-As the same student, try attempting the quiz again.
      5-A message saying that you have reached the maximum number of attempts will appear and you will not be able to attempt the quiz again.

      Show
      1-Create a quiz with a maximum of 2 attempts. 2-As a student, complete both attempts. 3-As a teacher, delete the first attempt. 4-As the same student, try attempting the quiz again. 5-A message saying that you have reached the maximum number of attempts will appear and you will not be able to attempt the quiz again.
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      If you reach the maximum number of attempts in a quiz with limited attempts and then delete an attempt prior to the last one, there still won't be any attempts left for the user.

      Moodle seems like it's validating if all the attempts have been done only by verifying the number associated with the last attempt, even though previous attempts have been deleted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              antonlion Anthony Colpron
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: