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

Check attempts available when providing reattempts

    XMLWordPrintable

Details

    • QA time

    Description

      With the change in MDL-74127, a count of remaining attempts are correctly shown on pages if required especially for pages that have a jump apart from "This/Next Page". However there is flaw in the logic of the page, when there are 0 remaining attempts, the user is still being shown an option to reanswer the question.

      Replication:

      1. Log in as a teacher, update a lesson activity and set
        • 'Allow student review' to No (Under Flow control)
        • 'Provide option to try a question again' to yes (Under Flow control)
        • 'Maximum number of attempts' to 2 (Under Flow control)
        • 'Use default feedback' to yes (Under Appearance)
      2. Log in as a student and attempt the activity.
      3. Answer a question wrongly and and check that the message 'You have 1 attempt(s) remaining' is displayed.
      4. Click the button 'Yes, I'd like to try again' and answer the question wrongly again.
      5. Answer the question incorrectly again
      6. You see #4 again
      7. Repeat #4
      8. You are taken to a "maximum retries reached' page. 

      Expected

      You shouldn't see #6-#8, instead just provide an option to Continue to the next question. 

      Attachments

        Issue Links

          Activity

            People

              peterdias Peter Dias
              peterdias Peter Dias
              Mathew May Mathew May
              Jun Pataleta Jun Pataleta
              CiBoT CiBoT
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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