mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-50677-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
315918f187
@ -373,7 +373,7 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user,
|
||||
$newfield = 'profile_field_'.$field->datatype;
|
||||
$formfield = new $newfield($field->id, $user->id);
|
||||
if ($formfield->is_visible() and !$formfield->is_empty()) {
|
||||
$node = new core_user\output\myprofile\node('contact', $formfield->field->shortname,
|
||||
$node = new core_user\output\myprofile\node('contact', 'custom_field_' . $formfield->field->shortname,
|
||||
format_string($formfield->field->name), null, null, $formfield->display_data());
|
||||
$tree->add_node($node);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user