Skip to content

Commit

Permalink
Fix #688 - improve handling of old restore files.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed May 17, 2024
1 parent 973c575 commit 98c59f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backup/moodle2/restore_attendance_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ protected function process_attendance_session($data) {
$data->lasttaken = 0;
$data->lasttakenby = 0;
}
if (!isset($data->allowupdatestatus)) {
$data->allowupdatestatus = 0;
}

$newitemid = $DB->insert_record('attendance_sessions', $data);
$data->id = $newitemid;
Expand Down

0 comments on commit 98c59f7

Please sign in to comment.