]> BookStack Code Mirror - bookstack/commitdiff
Audit Log: Fixed bad reference to linked entity item 4987/head
authorDan Brown <redacted>
Sun, 5 May 2024 15:05:21 +0000 (16:05 +0100)
committerDan Brown <redacted>
Sun, 5 May 2024 15:05:21 +0000 (16:05 +0100)
resources/views/settings/audit.blade.php

index 89d743fdc7ca2afa4679e640697069f46dbebe82..28cdeb8a5a7e5e8a5892b6fffc96bf9b4bb0888a 100644 (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>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.