Added new fields to action report

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-12-15 10:45:22 +00:00
parent 7aabf94a35
commit 421802893e

View file

@ -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);
} }