A free open source IT asset/license management system
Ensure non-checked out items can be displayed
Marcus Moore3aa256ec021d
diff --git a/app/Models/Labels/FieldOption.php b/app/Models/Labels/FieldOption.phpindex 2f874ec389..7e45cc0ce7 100644--- a/app/Models/Labels/FieldOption.php+++ b/app/Models/Labels/FieldOption.php@@ -19,7 +19,7 @@ class FieldOption {// we want to avoid returning the property directly// and instead return the entity's presented name.if ($dataPath[0] === 'assignedTo'){- return $asset->assignedTo->present()->fullName();+ return $asset->assignedTo ? $asset->assignedTo->present()->fullName() : null;}return $dataPath->reduce(function ($myValue, $path) {