mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Allowed sorting on user_agent, etc
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
93c7108eda
commit
a90b04c905
|
@ -40,6 +40,14 @@ class ReportsController extends Controller
|
||||||
$actionlogs = $actionlogs->where('action_type', '=', $request->input('action_type'))->orderBy('created_at', 'desc');
|
$actionlogs = $actionlogs->where('action_type', '=', $request->input('action_type'))->orderBy('created_at', 'desc');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request->filled('action_source')) {
|
||||||
|
$actionlogs = $actionlogs->where('action_source', '=', $request->input('action_source'))->orderBy('created_at', 'desc');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request->filled('remote_ip')) {
|
||||||
|
$actionlogs = $actionlogs->where('remote_ip', '=', $request->input('remote_ip'))->orderBy('created_at', 'desc');
|
||||||
|
}
|
||||||
|
|
||||||
if ($request->filled('uploads')) {
|
if ($request->filled('uploads')) {
|
||||||
$actionlogs = $actionlogs->whereNotNull('filename')->orderBy('created_at', 'desc');
|
$actionlogs = $actionlogs->whereNotNull('filename')->orderBy('created_at', 'desc');
|
||||||
}
|
}
|
||||||
|
@ -52,6 +60,9 @@ class ReportsController extends Controller
|
||||||
'accept_signature',
|
'accept_signature',
|
||||||
'action_type',
|
'action_type',
|
||||||
'note',
|
'note',
|
||||||
|
'remote_ip',
|
||||||
|
'user_agent',
|
||||||
|
'action_source',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue