diff --git a/app/forms/AttendeeForm.php b/app/forms/AttendeeForm.php index b63407ef9..8b4256e4e 100644 --- a/app/forms/AttendeeForm.php +++ b/app/forms/AttendeeForm.php @@ -241,6 +241,10 @@ public function submitted() $user->setProperties($values, $this->presenter->context->database); $user->approved = $approved; + $user->displayName = "{$user->lastName} {$user->firstName}"; + if ($user->nickName != '') + $user->displayName .= " ({$user->nickName})"; + $this->presenter->context->database->flush(); $this->presenter->flashMessage('Registrace odeslána. Pro další informace o stavu registrace, platbě a semináři se musíte znovu přihlásit.', 'success forever'); $this->presenter->user->logout(true);