mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Prevent errors if company support conflict prevents viewing the item
This commit is contained in:
parent
8a81b29901
commit
2ab0594530
|
@ -264,14 +264,14 @@ View Assets for {{ $user->fullName() }}
|
|||
{{ strtolower(trans('general.'.str_replace(' ','_',$log->action_type))) }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($log->itemType()=="asset")
|
||||
@if (($log->item) && ($log->itemType()=="asset"))
|
||||
@if ($log->item->deleted_at=='')
|
||||
{{ $log->item->showAssetName() }}
|
||||
@else
|
||||
<del>{{ $log->item->showAssetName() }}</del> (deleted)
|
||||
@endif
|
||||
|
||||
@elseif (!is_null($log->itemType()))
|
||||
@elseif ($log->item)
|
||||
@if ($log->item->deleted_at=='')
|
||||
{{ $log->item->name }}
|
||||
@else
|
||||
|
|
Loading…
Reference in a new issue