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