From ca849db31604ccc57f582948d91924217b4c0acd Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Wed, 1 Mar 2023 12:23:13 -0800 Subject: [PATCH] The 'download activity report' displayed the wrong value for 'admin' --- app/Http/Controllers/ReportsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 41b2f257c0..c0c621ff68 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -284,7 +284,7 @@ class ReportsController extends Controller $row = [ $actionlog->created_at, - ($actionlog->user) ? e($actionlog->user->getFullNameAttribute()) : '', + ($actionlog->admin) ? e($actionlog->admin->getFullNameAttribute()) : '', $actionlog->present()->actionType(), e($actionlog->itemType()), ($actionlog->itemType() == 'user') ? $actionlog->filename : $item_name,