mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-33560-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
a7b2d08727
@ -67,7 +67,7 @@ class enrol_self_enrol_form extends moodleform {
|
||||
if ($instance->password) {
|
||||
//change the id of self enrolment key input as there can be multiple self enrolment methods
|
||||
$mform->addElement('passwordunmask', 'enrolpassword', get_string('password', 'enrol_self'),
|
||||
array('id' => $instance->id."_enrolpassword"));
|
||||
array('id' => 'enrolpassword_'.$instance->id));
|
||||
} else {
|
||||
$mform->addElement('static', 'nokey', '', get_string('nopassword', 'enrol_self'));
|
||||
}
|
||||
@ -127,4 +127,4 @@ class enrol_self_enrol_form extends moodleform {
|
||||
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ YUI.add('moodle-form-passwordunmask', function(Y) {
|
||||
M.form.passwordunmask = function(params) {
|
||||
return new PASSWORDUNMASK(params);
|
||||
}
|
||||
}, '@VERSION@', {requires:['base', 'node']});
|
||||
}, '@VERSION@', {requires:['base', 'node']});
|
||||
|
Loading…
x
Reference in New Issue
Block a user