mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
Handle unicode in contact and contactgroup names
This commit is contained in:
parent
8f4401cc72
commit
b10044bb8d
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ class UserRenderer implements ItemRenderer
|
|||
$visual->addHtml(
|
||||
(new Ball($layout === 'minimal' ? Ball::SIZE_BIG : Ball::SIZE_LARGE))
|
||||
->addAttributes(['class' => 'user-ball'])
|
||||
->addHtml(Text::create($item->display_name[0]))
|
||||
->addHtml(Text::create(grapheme_substr($item->display_name, 0, 1)))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class UsergroupRenderer implements ItemRenderer
|
|||
$visual->addHtml(
|
||||
(new Ball($layout === 'minimal' ? Ball::SIZE_BIG : Ball::SIZE_LARGE))
|
||||
->addAttributes(['class' => 'usergroup-ball'])
|
||||
->addHtml(Text::create($item->display_name[0]))
|
||||
->addHtml(Text::create(grapheme_substr($item->display_name, 0, 1)))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue