mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes presenter issue on user history
This commit is contained in:
parent
a59db7062d
commit
da2d9b2374
|
@ -25,8 +25,10 @@ class ReportsController extends Controller
|
|||
$actionlogs = $actionlogs->TextSearch(e($request->input('search')));
|
||||
}
|
||||
|
||||
if ($request->has('user_id')) {
|
||||
$actionlogs = $actionlogs->where('target_id','=',$request->input('user_id'))->where('target_type','=','App\\Models\\User');
|
||||
if (($request->has('target_type')) && ($request->has('target_id'))) {
|
||||
$actionlogs = $actionlogs->where('target_id','=',$request->input('target_id'))
|
||||
->where('target_type','=',"App\\Models\\".ucwords($request->input('target_type')));
|
||||
|
||||
}
|
||||
|
||||
if (($request->has('item_type')) && ($request->has('item_id'))) {
|
||||
|
|
|
@ -434,7 +434,7 @@
|
|||
name="userActivityReport"
|
||||
id="table4
|
||||
data-sort-order="desc"
|
||||
data-url="{{ route('api.activity.index', ['user_id' => $user->id]) }}">
|
||||
data-url="{{ route('api.activity.index', ['target_id' => $user->id, 'target_type' => 'user']) }}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-field="icon" style="width: 40px;" class="hidden-xs" data-formatter="iconFormatter"></th>
|
||||
|
@ -457,6 +457,7 @@
|
|||
@stop
|
||||
|
||||
@section('moar_scripts')
|
||||
@include ('partials.bootstrap-table', ['simple_view' => true])
|
||||
<script>
|
||||
$(function () {
|
||||
//binds to onchange event of your input field
|
||||
|
@ -515,7 +516,3 @@ $(function () {
|
|||
|
||||
|
||||
@stop
|
||||
|
||||
@section('moar_scripts')
|
||||
@include ('partials.bootstrap-table')
|
||||
@stop
|
||||
|
|
Loading…
Reference in a new issue