MDL-33818 quiz restore: quiz_attempt.state not restoring old MBZ
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 18 Jun 2012 13:09:06 +0000 (14:09 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 18 Jun 2012 13:09:06 +0000 (14:09 +0100)
commit584ae11a524caaef1772ebafff7fe302f3c9ad9c
tree5a13107dcdd4272bde2d846d75df438a591537ff
parentf4a9bf65da973ea9ac101ce16bede2de4b2e0961
MDL-33818 quiz restore: quiz_attempt.state not restoring old MBZ

This field was new in 2.3, so we need to set it when restoring backups
from 2.2 or before, using the same logic as in upgrade.
mod/quiz/backup/moodle2/restore_quiz_stepslib.php