From: Dan Marsden Date: Thu, 7 Dec 2017 00:10:09 +0000 (+1300) Subject: Add absenteereport to class when adding session. X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=aa4e9b2298dd261e877d8d4801c2e3935f46dab5;p=moodle-mod_attendance.git Add absenteereport to class when adding session. --- 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.