From ec75d8095b6d156dd99502cbd638a20dfa75f374 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 7 Dec 2017 11:13:23 +1300 Subject: [PATCH] Add missing backup field, and new field in tests. --- backup/moodle2/backup_attendance_stepslib.php | 2 +- tests/attendance_webservices_test.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;