MDL-31319 quiz attempts: include currentpage in backup
authorCharles Fulton <mackensen@gmail.com>
Sat, 21 Jan 2012 01:11:47 +0000 (17:11 -0800)
committerCharles Fulton <mackensen@gmail.com>
Mon, 23 Jan 2012 13:12:44 +0000 (05:12 -0800)
mod/quiz/backup/moodle2/backup_quiz_stepslib.php

index a8c9e54..bcf7d20 100644 (file)
@@ -81,7 +81,7 @@ class backup_quiz_activity_structure_step extends backup_questions_activity_stru
         $attempt = new backup_nested_element('attempt', array('id'), array(
             'uniqueid', 'userid', 'attemptnum', 'sumgrades',
             'timestart', 'timefinish', 'timemodified', 'layout',
-            'preview'));
+            'preview', 'currentpage'));
 
         // This module is using questions, so produce the related question states and sessions
         // attaching them to the $attempt element based in 'uniqueid' matching