mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-56323 core_user: User profile field default value not on signup page
The default value of a configured text input user profile field is not rendering on signup page
This commit is contained in:
parent
d9520bc04e
commit
74866f8f16
@ -208,7 +208,7 @@ class profile_field_base {
|
||||
* @param moodleform $mform instance of the moodleform class
|
||||
*/
|
||||
public function edit_field_set_default($mform) {
|
||||
if (!empty($default)) {
|
||||
if (!empty($this->field->defaultdata)) {
|
||||
$mform->setDefault($this->inputname, $this->field->defaultdata);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user