mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Check that the assigned data is valid
This commit is contained in:
parent
8f160a8590
commit
6f3a90c48b
|
@ -302,7 +302,7 @@ class AssetsController extends Controller
|
|||
|
||||
$asset->use_text = $asset->present()->fullName;
|
||||
|
||||
if ($asset->checkedOutToUser()) {
|
||||
if (($asset->checkedOutToUser()) && ($asset->assigned)) {
|
||||
$asset->use_text .= ' → '.$asset->assigned->getFullNameAttribute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue