Skip to content

Commit

Permalink
User: Fix self registration crashes if text fields are not required
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay authored and kergomard committed Nov 22, 2024
1 parent 8f494bb commit 72677ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ private function getTextInput(
?ilObjUser $user
): ilFormPropertyGUI {
$text_input = new ilTextInputGUI($this->lng->txt($lang_var), 'usr_' . $field_id);
$text_input->setValue('');
if ($user !== null) {
$text_input->setValue($user->$method() ?? '');
}
Expand Down

0 comments on commit 72677ad

Please sign in to comment.