mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Ensure non-checked out items can be displayed
This commit is contained in:
parent
36638feac4
commit
3aa256ec02
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue