Skip to content

A free open source IT asset/license management system

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)

Daniel Meltzer0bf5c6978ef9
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";
}