From d54c7b4783b05d8a8b4b904b280453d954698732 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 5 May 2024 16:05:21 +0100 Subject: [PATCH] Audit Log: Fixed bad reference to linked entity item --- resources/views/settings/audit.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/settings/audit.blade.php b/resources/views/settings/audit.blade.php index 89d743fdc..28cdeb8a5 100644 --- a/resources/views/settings/audit.blade.php +++ b/resources/views/settings/audit.blade.php @@ -94,8 +94,8 @@ class="mr-xs hide-over-m">{{ trans('settings.audit_table_event') }} : {{ $activity->type }}
- @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())
{{ trans('settings.audit_deleted_item') }}