From 0bf5c6978ef9b327b40add36728b73a63f192c26 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Tue, 26 Jul 2016 15:06:38 -0500 Subject: [PATCH] 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) --- app/Models/Asset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 0944a1bb38..3a898816b5 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -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"; }