Skip to content

Commit 4d3e2fc

Browse files
mjansenDatabaykergomard
authored andcommitted
User: Fix self registration crashes if text fields are not required
See: https://mantis.ilias.de/view.php?id=42869
1 parent 393e428 commit 4d3e2fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Services/User/classes/Profile/class.ilUserProfile.php

+1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ private function getTextInput(
363363
?ilObjUser $user
364364
): ilFormPropertyGUI {
365365
$text_input = new ilTextInputGUI($this->lng->txt($lang_var), 'usr_' . $field_id);
366+
$text_input->setValue('');
366367
if ($user !== null) {
367368
$text_input->setValue($user->$method() ?? '');
368369
}

0 commit comments

Comments
 (0)