Audit Log: Fixed bad reference to linked entity item

This commit is contained in:
Dan Brown 2024-05-05 16:05:21 +01:00
parent 67df127c26
commit d54c7b4783
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -94,8 +94,8 @@
class="mr-xs hide-over-m">{{ trans('settings.audit_table_event') }}
:</strong> {{ $activity->type }}</div>
<div class="flex-3 px-m py-xxs min-width-l">
@if($activity->entity)
@include('entities.icon-link', ['entity' => $activity->entity])
@if($activity->loggable instanceof \BookStack\Entities\Models\Entity)
@include('entities.icon-link', ['entity' => $activity->loggable])
@elseif($activity->detail && $activity->isForEntity())
<div>
{{ trans('settings.audit_deleted_item') }} <br>