mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Simplify
This commit is contained in:
parent
4af5cdd64f
commit
f2a5337ad2
|
@ -173,8 +173,7 @@ class Asset extends Depreciable
|
|||
|
||||
|
||||
public function getDetailedNameAttribute() {
|
||||
$user = $this->assigneduser;
|
||||
if($user) {
|
||||
if($this->assigned_user) {
|
||||
$user_name = $user->fullName();
|
||||
} else {
|
||||
$user_name = "Unassigned";
|
||||
|
|
Loading…
Reference in a new issue