Merge pull request #14325 from snipe/fixes/RB-17890

Check for valid supplier in license view
This commit is contained in:
snipe 2024-02-23 10:49:56 +00:00 committed by GitHub
commit 8cd0a90ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,9 +182,13 @@
</strong>
</div>
<div class="col-md-9">
<a href="{{ route('suppliers.show', $license->supplier_id) }}">
{{ $license->supplier->name }}
</a>
@if ($license->supplier)
<a href="{{ route('suppliers.show', $license->supplier_id) }}">
{{ $license->supplier->name }}
</a>
@else
{{ trans('general.deleted') }}
@endif
</div>
</div>
@endif