Check for valid model

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-10-31 16:04:19 +00:00
parent e6810e8db9
commit 22996895d8

View file

@ -81,7 +81,7 @@
<td>{{ $asset->asset_tag }}</td>
<td>{{ $asset->name }}</td>
<td>{{ (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : trans('general.invalid_category') }}</td>
<td>{{ $asset->model->name }}</td>
<td>{{ ($asset->model) ? $asset->model->name : trans('general.invalid_model') }}</td>
<td>{{ $asset->serial }}</td>
<td>
{{ $asset->last_checkout }}</td>