Skip to content

Commit d54c7b4

Browse files
committed
Audit Log: Fixed bad reference to linked entity item
1 parent 67df127 commit d54c7b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/settings/audit.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class="text-item">{{ $type }}</a></li>
9494
class="mr-xs hide-over-m">{{ trans('settings.audit_table_event') }}
9595
:</strong> {{ $activity->type }}</div>
9696
<div class="flex-3 px-m py-xxs min-width-l">
97-
@if($activity->entity)
98-
@include('entities.icon-link', ['entity' => $activity->entity])
97+
@if($activity->loggable instanceof \BookStack\Entities\Models\Entity)
98+
@include('entities.icon-link', ['entity' => $activity->loggable])
9999
@elseif($activity->detail && $activity->isForEntity())
100100
<div>
101101
{{ trans('settings.audit_deleted_item') }} <br>

0 commit comments

Comments
 (0)