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
commit 5703b95de3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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