change to make sure department actually exists

This commit is contained in:
akemidx 2023-07-12 15:57:44 -04:00
parent d0212d4bda
commit 1163af3c10

View file

@ -919,7 +919,7 @@
</li>
@endif
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department!=''))
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
@endif