A free open source IT asset/license management system
Fixed #18764 - check for model category in info-panel
snipe328a724920e0
diff --git a/resources/views/blade/info-panel/index.blade.php b/resources/views/blade/info-panel/index.blade.phpindex 6d26f06817..b382793d51 100644--- a/resources/views/blade/info-panel/index.blade.php+++ b/resources/views/blade/info-panel/index.blade.php@@ -116,6 +116,10 @@{!! $infoPanelObj->model->present()->formattedNameLink !!}</x-copy-to-clipboard></x-info-element>++ <x-info-element icon_type="category" icon_color="{{ $infoPanelObj->model->category->tag_color }}" title="{{ trans('general.category') }}">+ <x-copy-to-clipboard class="pull-right" copy_what="category">{!! $infoPanelObj->model->category->present()->nameUrl !!}</x-copy-to-clipboard>+ </x-info-element>@endif@if ($infoPanelObj->model_number)@@ -229,6 +233,7 @@</x-info-element>@endif+@if ($infoPanelObj->category_type)<x-info-element icon_type="{{ $infoPanelObj->category_type }}" title="{{ trans('general.type') }}"><x-copy-to-clipboard class="pull-right" copy_what="category_type">{{ $infoPanelObj->category_type }}</x-copy-to-clipboard>