Browse Source

Prevent auto-mark setting changes when marking completed.

40-behatfixes
Dan Marsden 3 years ago
parent
commit
9d1d5edb52
  1. 3
      classes/form/updatesession.php

3
classes/form/updatesession.php

@ -154,6 +154,9 @@ class updatesession extends \moodleform {
$mform->addElement('select', 'automarkcmid', get_string('selectactivity', 'attendance'), $automarkcmoptions2); $mform->addElement('select', 'automarkcmid', get_string('selectactivity', 'attendance'), $automarkcmoptions2);
$mform->setType('automarkcmid', PARAM_INT); $mform->setType('automarkcmid', PARAM_INT);
$mform->hideif('automarkcmid', 'automark', 'neq', '3'); $mform->hideif('automarkcmid', 'automark', 'neq', '3');
if (!empty($sess->automarkcompleted)) {
$mform->hardFreeze('automarkcmid,automark,studentscanmark');
}
if (!empty($studentscanmark)) { if (!empty($studentscanmark)) {
$mform->addElement('text', 'studentpassword', get_string('studentpassword', 'attendance')); $mform->addElement('text', 'studentpassword', get_string('studentpassword', 'attendance'));

Loading…
Cancel
Save