mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Check for valid category
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
7cb4740359
commit
a930661150
|
@ -421,7 +421,11 @@
|
|||
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" style="max-height: 30px; width: auto" class="img-responsive">
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $asset->model->category->name }}</td>
|
||||
<td>
|
||||
@if (($asset->model) && ($asset->model->category))
|
||||
{{ $asset->model->category->name }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $asset->asset_tag }}</td>
|
||||
<td>{{ $asset->name }}</td>
|
||||
<td>
|
||||
|
|
Loading…
Reference in a new issue