Browse Source

Add missing backup field, and new field in tests.

MOODLE_35_STABLE
Dan Marsden 7 years ago
parent
commit
3b0cd9a429
  1. 2
      backup/moodle2/backup_attendance_stepslib.php
  2. 1
      tests/attendance_webservices_test.php

2
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( $session = new backup_nested_element('session', array('id'), array(
'groupid', 'sessdate', 'duration', 'lasttaken', 'lasttakenby', 'groupid', 'sessdate', 'duration', 'lasttaken', 'lasttakenby',
'timemodified', 'description', 'descriptionformat', 'studentscanmark', 'studentpassword', 'timemodified', 'description', 'descriptionformat', 'studentscanmark', 'studentpassword',
'subnet', 'automark', 'automarkcompleted', 'statusset', 'caleventid')); 'subnet', 'automark', 'automarkcompleted', 'statusset', 'absenteereport', 'caleventid'));
// XML nodes declaration - user data. // XML nodes declaration - user data.
$logs = new backup_nested_element('logs'); $logs = new backup_nested_element('logs');

1
tests/attendance_webservices_test.php

@ -85,6 +85,7 @@ class attendance_webservices_tests extends advanced_testcase {
$session->timemodified = time(); $session->timemodified = time();
$session->statusset = 0; $session->statusset = 0;
$session->groupid = 0; $session->groupid = 0;
$session->absenteereport = 1;
// Creating two sessions. // Creating two sessions.
$this->sessions[] = $session; $this->sessions[] = $session;

Loading…
Cancel
Save