Fix for deleted users display

This commit is contained in:
snipe 2016-08-02 04:45:48 -07:00
parent ef6fb69cee
commit cbc42f3e59
2 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -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>