projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b0cd9a
)
Add absenteereport to class when adding session.
author
Dan Marsden
<dan@danmarsden.com>
Thu, 7 Dec 2017 00:10:09 +0000
(13:10 +1300)
committer
Dan Marsden
<dan@danmarsden.com>
Thu, 7 Dec 2017 00:10:09 +0000
(13:10 +1300)
locallib.php
patch
|
blob
|
history
diff --git
a/locallib.php
b/locallib.php
index
b528463
..
8bc98f0
100644
(file)
--- 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.