mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
change to make sure department actually exists
This commit is contained in:
parent
d0212d4bda
commit
1163af3c10
|
@ -919,7 +919,7 @@
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@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>
|
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue