Quiz - combining user and group overrides

Re: Quiz - combining user and group overrides

by Tim Hunt -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
For the benefit of people who can read code, here is the code that combines the quiz settings, group and user overrides: https://github.com/moodle/moodle/blob/a5f618d6a988547c31da73f2e5fff48c48c776fb/mod/quiz/lib.php#L289.

User override should take precedence, but there could be a bug.

If you think it is not working, the most helpful thing you could do is to try to make the simplest possible example that demonstrates the bug.
In reply to Tim Hunt

Re: Quiz - combining user and group overrides

by Troy Challenger -

We just had this same issue.  I wonder if the addition of the timer in the User Override is the issue?

Quiz Settings:
Open the quiz: 7 May 2020 12:45
Close the quiz: 7 May 2020 16:26
No timer.

Group Override settings:
Open the quiz: 7 May 2020 12:45
Close the quiz: 7 May 2020 14:00
No timer.

User Override Settings:
Open the quiz: 7 May 2020 12:45
Close the quiz: 7 May 2020 16:26
Time limit:  2 hours

Student started the quiz, at 12:45, but it closed at 14:00, even though the timer said he had additional time.

I believe we are running Moodle 3.7

In reply to Troy Challenger

Re: Quiz - combining user and group overrides

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
With those settings, the user override should be used. If they started at 12:45, then the 2-hour time limit should have ended at 14:45.