diff --git a/add_form.php b/add_form.php index ec04bd8..1fe4668 100644 --- a/add_form.php +++ b/add_form.php @@ -164,6 +164,7 @@ class mod_attendance_add_form extends moodleform { $mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked'); $mform->setDefault('subnet', $this->_customdata['att']->subnet); + $mform->setAdvanced('subnet'); } else { $mform->addElement('hidden', 'studentscanmark', '0'); diff --git a/update_form.php b/update_form.php index 2ec4029..76ab916 100644 --- a/update_form.php +++ b/update_form.php @@ -119,6 +119,7 @@ class mod_attendance_update_form extends moodleform { $mform->setType('subnet', PARAM_TEXT); $mform->addHelpButton('subnet', 'requiresubnet', 'attendance'); $mform->disabledif('subnet', 'studentscanmark', 'notchecked'); + $mform->setAdvanced('subnet'); $mform->addElement('hidden', 'automarkcompleted', '0'); $mform->settype('automarkcompleted', PARAM_INT);