Browse Source

Fix issue when checking if a status set has an absent flag when updating a session.

MOODLE_35_STABLE
Dan Marsden 7 years ago
parent
commit
4f3420bb79
  1. 3
      update_form.php

3
update_form.php

@ -99,6 +99,9 @@ class mod_attendance_update_form extends moodleform {
if ($maxstatusset > 0) { if ($maxstatusset > 0) {
$mform->addElement('static', 'statusset', get_string('usestatusset', 'mod_attendance'), $mform->addElement('static', 'statusset', get_string('usestatusset', 'mod_attendance'),
attendance_get_setname($this->_customdata['att']->id, $sess->statusset)); 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'), $mform->addElement('editor', 'sdescription', get_string('description', 'attendance'),

Loading…
Cancel
Save