From 4a37632ef35c70545315fe5af646b1e2cfec9c6d Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 Feb 2024 10:48:53 +0000 Subject: [PATCH] Check for valid supplier in license view Signed-off-by: snipe --- resources/views/licenses/view.blade.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index 0310aeaf6995..a0cfac569db8 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -182,9 +182,13 @@
- - {{ $license->supplier->name }} - + @if ($license->supplier) + + {{ $license->supplier->name }} + + @else + {{ trans('general.deleted') }} + @endif
@endif