From 38a6542a4f5e79115a2f1e96e176789e4a1a533a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 7 Dec 2017 13:10:09 +1300 Subject: [PATCH] Add absenteereport to class when adding session. --- locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/locallib.php b/locallib.php index b528463..8bc98f0 100644 --- a/locallib.php +++ b/locallib.php @@ -616,6 +616,7 @@ function attendance_construct_sessions_data_for_add($formdata, mod_attendance_st $sess->studentpassword = ''; $sess->automark = 0; $sess->automarkcompleted = 0; + $sess->absenteereport = 1; if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) { // Students will be able to mark their own attendance.