Check that the category exists

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-10-31 15:58:59 +00:00
parent 9a7e7bddcc
commit 28641493ca

View file

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