From 665a113ed8185d917d0e68089c9377a74b876aff Mon Sep 17 00:00:00 2001 From: Geoff Young Date: Tue, 17 Oct 2017 23:39:49 -0400 Subject: [PATCH] Update account history query (#4237) This will limit the action_log records displayed when a user is viewing their own assets and history since both target_type and target_id must be set for a where condition to be added to the history query. --- resources/views/account/view-assets.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.php index a6eb89245..0ba077919 100755 --- a/resources/views/account/view-assets.blade.php +++ b/resources/views/account/view-assets.blade.php @@ -230,7 +230,7 @@ View Assets for {{ $user->present()->fullName() }} id="table" data-cookie="false" data-cookie-id-table="userHistoryTable-{{ config('version.hash_version') }}" - data-url="{{route('api.activity.index', ['user_id' => $user->id, 'order' => 'desc']) }}"> + data-url="{{route('api.activity.index', ['target_id' => $user->id, 'target_type' => 'User', 'order' => 'desc']) }}">