mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-25 20:51:30 -08:00
Make sure the assigned user is actually shown in the dropdown list. Not sure why this wasn't throwing an error for me, but this makes it actually behave. (#2322)
This commit is contained in:
parent
9a9b214c1d
commit
0bf5c6978e
|
@ -179,8 +179,8 @@ class Asset extends Depreciable
|
||||||
|
|
||||||
public function getDetailedNameAttribute()
|
public function getDetailedNameAttribute()
|
||||||
{
|
{
|
||||||
if ($this->assigned_user) {
|
if ($this->assignedUser) {
|
||||||
$user_name = $user->fullName();
|
$user_name = $this->assignedUser->fullName();
|
||||||
} else {
|
} else {
|
||||||
$user_name = "Unassigned";
|
$user_name = "Unassigned";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue