Browse Source

Add absenteereport to class when adding session.

MOODLE_33_STABLE
Dan Marsden 7 years ago
parent
commit
03cdde1a34
  1. 1
      locallib.php

1
locallib.php

@ -616,6 +616,7 @@ function attendance_construct_sessions_data_for_add($formdata, mod_attendance_st
$sess->studentpassword = ''; $sess->studentpassword = '';
$sess->automark = 0; $sess->automark = 0;
$sess->automarkcompleted = 0; $sess->automarkcompleted = 0;
$sess->absenteereport = 1;
if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) { if (isset($formdata->studentscanmark) && !empty($formdata->studentscanmark)) {
// Students will be able to mark their own attendance. // Students will be able to mark their own attendance.

Loading…
Cancel
Save