mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-42762 administration: Fixed additional names section from being missing.
When an additional name field is not enabled in the admin settings the text box should still be available to fill out in a section further down the page (Additional names).
This commit is contained in:
parent
d214057cad
commit
b63f542d21
@ -291,7 +291,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
|
||||
|
||||
// Display user name fields that are not currenlty enabled here if there are any.
|
||||
$disabledusernamefields = useredit_get_disabled_name_fields($enabledusernamefields);
|
||||
if (isset($disabledusernamefields[0])) {
|
||||
if (count($disabledusernamefields) > 0) {
|
||||
$mform->addElement('header', 'moodle_additional_names', get_string('additionalnames'));
|
||||
foreach ($disabledusernamefields as $allname) {
|
||||
$mform->addElement('text', $allname, get_string($allname), 'maxlength="100" size="30"');
|
||||
|
Loading…
x
Reference in New Issue
Block a user