Skip to content
Snippets Groups Projects
Commit c901c48d authored by Moritz Strohm's avatar Moritz Strohm
Browse files

Calendar selector: do not display the titles of users

parent 14efe428
No related branches found
No related tags found
No related merge requests found
...@@ -254,7 +254,7 @@ class Calendar_CalendarController extends AuthenticatedController ...@@ -254,7 +254,7 @@ class Calendar_CalendarController extends AuthenticatedController
User::findCurrent()->id => _('Eigener Kalender') User::findCurrent()->id => _('Eigener Kalender')
]; ];
foreach ($other_users as $user) { foreach ($other_users as $user) {
$select_options[$user->id] = $user->getFullName(); $select_options[$user->id] = sprintf('%1$s %2$s', $user->vorname, $user->nachname);
} }
$calendar_select->setOptions($select_options, Request::get('user_id')); $calendar_select->setOptions($select_options, Request::get('user_id'));
$sidebar->addWidget($calendar_select); $sidebar->addWidget($calendar_select);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment