Skip to content

Commit 8d321ed

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 66e82a3 + 3fb543b commit 8d321ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/ReportsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function postActivityReport(Request $request) : StreamedResponse
259259
$executionTime = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
260260
Log::debug('Added headers: '.$executionTime);
261261

262-
$actionlogs = Actionlog::with('item', 'user', 'target', 'location')
262+
$actionlogs = Actionlog::with('item', 'user', 'target', 'location', 'adminuser')
263263
->orderBy('created_at', 'DESC')
264264
->chunk(20, function ($actionlogs) use ($handle) {
265265
$executionTime = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
@@ -286,7 +286,7 @@ public function postActivityReport(Request $request) : StreamedResponse
286286

287287
$row = [
288288
$actionlog->created_at,
289-
($actionlog->admin) ? e($actionlog->admin->getFullNameAttribute()) : '',
289+
($actionlog->adminuser) ? e($actionlog->adminuser->getFullNameAttribute()) : '',
290290
$actionlog->present()->actionType(),
291291
e($actionlog->itemType()),
292292
($actionlog->itemType() == 'user') ? $actionlog->filename : $item_name,

0 commit comments

Comments
 (0)