MDL-58431 mod_lesson: Fix error in random jumps on first visit
commit78681d03b0afcf18b662f63fff98f38bc77fec90
authorJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 19 Apr 2017 15:43:21 +0000 (19 17:43 +0200)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 19 Apr 2017 15:47:21 +0000 (19 17:47 +0200)
tree4a31873c987a4e7bce46ed770a4141fec4b545d2
parent6d14355ce830af59ce004e8ce71a797c6ec9b4b2
MDL-58431 mod_lesson: Fix error in random jumps on first visit

Random jumps to content pages were not working when they were set in
the first page.
This was caused because the page where the jump was, was not being
marked as visited before calculating the jump.
mod/lesson/pagetypes/branchtable.php