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:
267a947
)
Fix issue when checking if a status set has an absent flag when updating a session.
author
Dan Marsden
<dan@danmarsden.com>
Mon, 26 Mar 2018 00:11:28 +0000
(13:11 +1300)
committer
Dan Marsden
<dan@danmarsden.com>
Mon, 26 Mar 2018 00:12:57 +0000
(13:12 +1300)
update_form.php
patch
|
blob
|
history
diff --git
a/update_form.php
b/update_form.php
index
7c9f099
..
4a73152
100644
(file)
--- a/
update_form.php
+++ b/
update_form.php
@@
-99,6
+99,9
@@
class mod_attendance_update_form extends moodleform {
if ($maxstatusset > 0) {
$mform->addElement('static', 'statusset', get_string('usestatusset', 'mod_attendance'),
attendance_get_setname($this->_customdata['att']->id, $sess->statusset));
+ } else {
+ $mform->addElement('hidden', 'statusset', $maxstatusset);
+ $mform->setType('statusset', PARAM_INT);
}
$mform->addElement('editor', 'sdescription', get_string('description', 'attendance'),