Modify the presenter to see if they have a display_name set
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user