Skip to content

Commit

Permalink
Merge pull request #14325 from snipe/fixes/RB-17890
Browse files Browse the repository at this point in the history
Check for valid supplier in license view
  • Loading branch information
snipe authored Feb 23, 2024
2 parents 3271d02 + 4a37632 commit 8cd0a90
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions resources/views/licenses/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cd0a90

Please sign in to comment.