mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Adds Components and Licenses logs to Assets history view
This commit is contained in:
parent
77fa213ccd
commit
5e4a3379a9
|
@ -33,7 +33,12 @@ class ReportsController extends Controller
|
||||||
|
|
||||||
if (($request->filled('item_type')) && ($request->filled('item_id'))) {
|
if (($request->filled('item_type')) && ($request->filled('item_id'))) {
|
||||||
$actionlogs = $actionlogs->where('item_id', '=', $request->input('item_id'))
|
$actionlogs = $actionlogs->where('item_id', '=', $request->input('item_id'))
|
||||||
->where('item_type', '=', 'App\\Models\\'.ucwords($request->input('item_type')));
|
->where('item_type', '=', 'App\\Models\\'.ucwords($request->input('item_type')))
|
||||||
|
->orWhere(function($query) use ($request)
|
||||||
|
{
|
||||||
|
$query->where('target_id', '=', $request->input('item_id'))
|
||||||
|
->where('target_type', '=', 'App\\Models\\'.ucwords($request->input('item_type')));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->filled('action_type')) {
|
if ($request->filled('action_type')) {
|
||||||
|
|
Loading…
Reference in a new issue