MDL-53065 quiz redo question: avoid PHP notice in edge case
commit293f5d1b112f1ef084e1e6c2f3eaf988e5e3e475
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 10 Feb 2016 19:22:17 +0000 (10 19:22 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 19 Feb 2016 12:10:39 +0000 (19 12:10 +0000)
tree3a08f0a501e447bbb9f64404fd5e8ff292301dfc
parent9d5d9c64ff18bd286eed49ef42dc73849f8db65f
MDL-53065 quiz redo question: avoid PHP notice in edge case

When selecting the variant of the new question, we need to add the
new question to the usage before trying to select a variant.

Also, we need to acutally use the selected variant number!
mod/quiz/attemptlib.php
question/classes/engine/variants/least_used_strategy.php