From 19d18e0492f18991e599a7ece0d1004f5bc02e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Fri, 4 Nov 2016 22:46:51 +0100 Subject: [PATCH] =?UTF-8?q?aktualizace=20displayName=20p=C5=99i=20zm=C4=9B?= =?UTF-8?q?n=C4=9B=20jm=C3=A9na=20p=C5=99i=20registraci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/forms/AttendeeForm.php | 4 ++++ 1 file changed, 4 insertions(+) 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);