mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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
|
// we want to avoid returning the property directly
|
||||||
// and instead return the entity's presented name.
|
// and instead return the entity's presented name.
|
||||||
if ($dataPath[0] === 'assignedTo'){
|
if ($dataPath[0] === 'assignedTo'){
|
||||||
return $asset->assignedTo->present()->fullName();
|
return $asset->assignedTo ? $asset->assignedTo->present()->fullName() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $dataPath->reduce(function ($myValue, $path) {
|
return $dataPath->reduce(function ($myValue, $path) {
|
||||||
|
|
Loading…
Reference in a new issue