|
|
@ -207,7 +207,7 @@ class addsession extends moodleform { |
|
|
|
$mform->addElement('hidden', 'studentscanmark', '0'); |
|
|
|
$mform->settype('studentscanmark', PARAM_INT); |
|
|
|
} |
|
|
|
|
|
|
|
if ($DB->record_exists('attendance_statuses', ['attendanceid' => $this->_customdata['att']->id, 'setunmarked' => 1])) { |
|
|
|
$options = attendance_get_automarkoptions(); |
|
|
|
|
|
|
|
$mform->addElement('select', 'automark', get_string('automark', 'attendance'), $options); |
|
|
@ -220,6 +220,7 @@ class addsession extends moodleform { |
|
|
|
$mform->addElement('select', 'automarkcmid', get_string('selectactivity', 'attendance'), $automarkcmoptions); |
|
|
|
$mform->setType('automarkcmid', PARAM_INT); |
|
|
|
$mform->hideif('automarkcmid', 'automark', 'neq', '3'); |
|
|
|
} |
|
|
|
|
|
|
|
if (!empty($studentscanmark)) { |
|
|
|
$mgroup = array(); |
|
|
|