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

Student can't start new attempt if a quiz has timle limit between attempts and time limit for a quiz, and he doesn't submit previous attempt closing browser window instead

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.10
    • 1.9.6
    • Quiz
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Student can't start new attempt if a quiz has timle limit between attempts and time limit for a quiz, and he doesn't submit previous attempt closing browser window instead.

      After chat with Tim proposed solution is to add a check
      && $timenow - $quiz->delay1 - $quiz->timelimit < $lastattempt_obj->timestart
      to the $timenow - $quiz->delay1 < $lastattempt when displaying error trying to start attempt.

      We may need to additionaly check of $quiz->timelimit>0 to retain current behavour for not timed-out quizzes. There should be patch for both attempt start and displaying a button to do this.

      Patch for 1.9 will be submitted for people who want to use it, for 2.0 it meant to go to the core.

            timhunt Tim Hunt
            oa_sychev Oleg Sychev
            Nobody Nobody
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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