diff --git a/backup/moodle2/backup_attendance_stepslib.php b/backup/moodle2/backup_attendance_stepslib.php index 2124a5c..f27d83c 100644 --- a/backup/moodle2/backup_attendance_stepslib.php +++ b/backup/moodle2/backup_attendance_stepslib.php @@ -58,7 +58,7 @@ class backup_attendance_activity_structure_step extends backup_activity_structur $session = new backup_nested_element('session', array('id'), array( 'groupid', 'sessdate', 'duration', 'lasttaken', 'lasttakenby', 'timemodified', 'description', 'descriptionformat', 'studentscanmark', 'studentpassword', - 'subnet', 'automark', 'automarkcompleted', 'statusset', 'caleventid')); + 'subnet', 'automark', 'automarkcompleted', 'statusset', 'absenteereport', 'caleventid')); // XML nodes declaration - user data. $logs = new backup_nested_element('logs'); diff --git a/tests/attendance_webservices_test.php b/tests/attendance_webservices_test.php index f0ff9e2..4712c15 100644 --- a/tests/attendance_webservices_test.php +++ b/tests/attendance_webservices_test.php @@ -85,6 +85,7 @@ class attendance_webservices_tests extends advanced_testcase { $session->timemodified = time(); $session->statusset = 0; $session->groupid = 0; + $session->absenteereport = 1; // Creating two sessions. $this->sessions[] = $session;