Modify the presenter to see if they have a display_name set

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-08-19 12:56:44 +01:00
parent 0c3103e3d2
commit 90fbf6da46

View File

@@ -458,6 +458,9 @@ class UserPresenter extends Presenter
*/
public function fullName()
{
if ($this->display_name) {
return html_entity_decode($this->display_name, ENT_QUOTES | ENT_XML1, 'UTF-8');
}
return html_entity_decode($this->first_name.' '.$this->last_name, ENT_QUOTES | ENT_XML1, 'UTF-8');
}