mirror of
https://github.com/moodle/moodle.git
synced 2025-06-01 05:35:55 +02:00
This random error was caused because when reviewing an attempt, the first pageid to display is calculated based on the timeseen field in the lesson_attempst table. In Oracle, sometimes it returned the second pageid (because both had the same timeseen), so which led to these random failures. Apart from adding 1-second wait when the attempt is created (to guarantee the first page is returned properly), a few more improvements have been also made, like removing manual steps for setting the lesson activity or adding some extra checks to confirm the information displayed is expected.