We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e0c55 commit fff2bceCopy full SHA for fff2bce
app/Http/Controllers/ReportsController.php
@@ -472,6 +472,9 @@ public function postCustom()
472
if (e(Input::get('assigned_to')) == '1') {
473
$header[] = 'Assigned To';
474
}
475
+ if (e(Input::get('username')) == '1') {
476
+ $header[] = 'Username';
477
+ }
478
if (e(Input::get('status')) == '1') {
479
$header[] = 'Status';
480
@@ -574,7 +577,7 @@ public function postCustom()
574
577
if (e(Input::get('username')) == '1') {
575
578
if ($asset->assigned_to > 0) {
576
579
$user = User::find($asset->assigned_to);
- $row[] = '"' .e($user-username). '"';
580
+ $row[] = '"' .e($user->username). '"';
581
} else {
582
$row[] = ''; // Empty string if unassigned
583
0 commit comments