Check that the assigned data is valid

This commit is contained in:
snipe 2017-11-22 15:07:34 -08:00
parent 8f160a8590
commit 6f3a90c48b

View file

@ -302,7 +302,7 @@ class AssetsController extends Controller
$asset->use_text = $asset->present()->fullName; $asset->use_text = $asset->present()->fullName;
if ($asset->checkedOutToUser()) { if (($asset->checkedOutToUser()) && ($asset->assigned)) {
$asset->use_text .= ' → '.$asset->assigned->getFullNameAttribute(); $asset->use_text .= ' → '.$asset->assigned->getFullNameAttribute();
} }