MDL-45970 quiz editing: fix display of random questions.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 12 Jun 2014 16:56:17 +0000 (17:56 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 12 Jun 2014 18:45:33 +0000 (19:45 +0100)
commit4175a57038109dd5f91b16b1fbb76abbce8e8206
treedd043cab036d9967bfbb00a3e4ec8c535711ea8b
parent337075d17bb1d15b888867abb66682cb53c86201
MDL-45970 quiz editing: fix display of random questions.

The pass by reference meant the function was clobbering the variable in
the calling function. Once that was change, it was not strictly
necessary to rename the variable in the function, but I did anyway for
clarity.

Thanks to Rajesh Taneja for finding the problem, and identifying which
bit of code was broken. I really just made the patch.
mod/quiz/editlib.php