MDL-23502 no form field disabling necessary any more
This commit is contained in:
@@ -46,7 +46,6 @@ class enrol_manual_edit_form extends moodleform {
|
||||
|
||||
$mform->addElement('duration', 'enrolperiod', get_string('defaultperiod', 'enrol_manual'), array('optional' => true, 'defaultunit' => 86400));
|
||||
$mform->setDefault('enrolperiod', $plugin->get_config('enrolperiod'));
|
||||
$mform->disabledIf('enrolperiod', 'status', 'noteq', ENROL_INSTANCE_ENABLED);
|
||||
|
||||
if ($instance->id) {
|
||||
$roles = get_default_enrol_roles($context, $instance->roleid);
|
||||
@@ -55,7 +54,6 @@ class enrol_manual_edit_form extends moodleform {
|
||||
}
|
||||
$mform->addElement('select', 'roleid', get_string('defaultrole', 'role'), $roles);
|
||||
$mform->setDefault('roleid', $plugin->get_config('roleid'));
|
||||
$mform->disabledIf('roleid', 'status', 'noteq', ENROL_INSTANCE_ENABLED);
|
||||
|
||||
$mform->addElement('hidden', 'courseid');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user