Skip to content

A free open source IT asset/license management system

The 'download activity report' displayed the wrong value for 'admin'

Brady Wetheringtonca849db31604
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,