Skip to content

Commit

Permalink
Fix storage audit logs showing old & new values the wrong way around
Browse files Browse the repository at this point in the history
  • Loading branch information
rjackson committed May 18, 2024
1 parent 636dfb0 commit 268db44
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/storage_boxes/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,26 @@
<td>{{ $key }}</td>
@if($key == 'user_id')
<td>
@if($new)
<a href="{{ route('account.show', $new) }}">
{{ $newUser = BB\Entities\User::find($new)->name }}
@if($old)
<a href="{{ route('account.show', $old) }}">
{{ $oldUser = BB\Entities\User::find($old)->name }}
</a>
@else
<span class="text-muted">(blank)</span>
@endif
</td>
<td>
@if($old)
<a href="{{ route('account.show', $old) }}">
{{ $oldUser = BB\Entities\User::find($old)->name }}
@if($new)
<a href="{{ route('account.show', $new) }}">
{{ $newUser = BB\Entities\User::find($new)->name }}
</a>
@else
<span class="text-muted">(blank)</span>
@endif
</td>
@else
<td>{{ $new }}</td>
<td>{{ $old }}</td>
<td>{{ $new }}</td>
@endif
</tr>
@endforeach
Expand Down

0 comments on commit 268db44

Please sign in to comment.