3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 12:25:24 +00:00

Since displayname should be referenced in the UI, we've changed it to use displayname

This commit is contained in:
Tadayuki Onishi
2026-01-07 16:26:03 +09:00
parent bf910bc708
commit 8e37fcc71e
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class ActionlogPresenter extends Presenter
return $user->present()->nameUrl();
}
// The user was deleted
return '<del>'.$user->getFullNameAttribute().'</del> (deleted)';
return '<del>'.$user->display_name.'</del> (deleted)';
}
return '';

View File

@ -524,7 +524,7 @@ class UserPresenter extends Presenter
*/
public function nameUrl()
{
return (string) link_to_route('users.show', $this->getFullNameAttribute(), $this->id);
return (string) link_to_route('users.show', $this->display_name, $this->id);
}
/**