From 2c5a2c8e89adef5858d73f2958f4581e9a7e15f1 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.