mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added new fields to action report
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
7aabf94a35
commit
421802893e
|
@ -252,6 +252,9 @@ class ReportsController extends Controller
|
||||||
trans('general.model_no'),
|
trans('general.model_no'),
|
||||||
'To',
|
'To',
|
||||||
trans('general.notes'),
|
trans('general.notes'),
|
||||||
|
trans('admin/settings/general.login_ip'),
|
||||||
|
trans('admin/settings/general.login_user_agent'),
|
||||||
|
trans('general.action_source'),
|
||||||
'Changed',
|
'Changed',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -298,6 +301,9 @@ class ReportsController extends Controller
|
||||||
$target_name,
|
$target_name,
|
||||||
($actionlog->note) ? e($actionlog->note) : '',
|
($actionlog->note) ? e($actionlog->note) : '',
|
||||||
$actionlog->log_meta,
|
$actionlog->log_meta,
|
||||||
|
$actionlog->remote_ip,
|
||||||
|
$actionlog->user_agent,
|
||||||
|
$actionlog->action_source,
|
||||||
];
|
];
|
||||||
fputcsv($handle, $row);
|
fputcsv($handle, $row);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue