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:
Daniel Meltzer 2016-07-26 15:06:38 -05:00 committed by snipe
parent 9a9b214c1d
commit 0bf5c6978e

View file

@ -179,8 +179,8 @@ class Asset extends Depreciable
public function getDetailedNameAttribute()
{
if ($this->assigned_user) {
$user_name = $user->fullName();
if ($this->assignedUser) {
$user_name = $this->assignedUser->fullName();
} else {
$user_name = "Unassigned";
}