3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 17:15:33 +00:00

Merge pull request #10657 from snipe/fixes/handle_deleted_auditor

Fixed - Check for valid user before trying to present the auditor name
This commit is contained in:
snipe
2022-02-10 20:14:24 -08:00
committed by GitHub

View File

@ -281,7 +281,10 @@
</div>
<div class="col-md-6">
{{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }}
(by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }})
@if ($audit_log->user)
(by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }})
@endif
</div>
</div>
@endif