mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Fix for deleted users display
This commit is contained in:
parent
ef6fb69cee
commit
cbc42f3e59
|
@ -152,6 +152,8 @@
|
|||
<a href="{{ route('view/component', $activity->component_id) }}">{{ $activity->componentlog->name }}</a>
|
||||
@elseif (($activity->assetlog) && ($activity->action_type=="uploaded"))
|
||||
<a href="{{ route('view/hardware', $activity->asset_id) }}">{{ $activity->assetlog->showAssetName() }}</a>
|
||||
@elseif (($activity->userlog) && ($activity->action_type=="uploaded"))
|
||||
<a href="{{ route('view/user', $activity->asset_id) }}">{{ $activity->userlog->fullName() }}</a>
|
||||
@else
|
||||
{{ trans('general.bad_data') }}
|
||||
@endif
|
||||
|
|
|
@ -442,7 +442,18 @@
|
|||
@endif
|
||||
|
||||
</td>
|
||||
<td>{{ $log->adminlog->fullName() }}</td>
|
||||
<td>@if ($log->adminlog)
|
||||
|
||||
@if ($log->adminlog->deleted_at=='')
|
||||
<a href="{{ route('view/user', $log->checkedout_to) }}">
|
||||
{{ $log->adminlog->fullName() }}
|
||||
</a>
|
||||
@else
|
||||
<del>{{ $log->adminlog->fullName() }}</del>
|
||||
@endif
|
||||
@else
|
||||
Deleted User
|
||||
@endif</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue