Fixed #4899 - sorting in user history

This commit is contained in:
snipe 2018-01-24 04:48:00 -08:00
parent a7b8b4bf55
commit fefd6d60f6
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class ReportsController extends Controller
];
$sort = in_array($request->input('sort'), $allowed_columns) ? e($request->input('sort')) : 'created_at';
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';
$order = $request->input('order') === 'asc' ? 'desc' : 'asc';
$offset = request('offset', 0);
$limit = request('limit', 50);
$total = $actionlogs->count();

View file

@ -478,7 +478,7 @@
<thead>
<tr>
<th data-field="icon" style="width: 40px;" class="hidden-xs" data-formatter="iconFormatter"></th>
<th class="col-sm-3" data-field="created_at" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th>
<th class="col-sm-3" data-field="created_at" data-formatter="dateDisplayFormatter" data-sortable="true">{{ trans('general.date') }}</th>
<th class="col-sm-2" data-field="admin" data-formatter="usersLinkObjFormatter">{{ trans('general.admin') }}</th>
<th class="col-sm-2" data-field="action_type">{{ trans('general.action') }}</th>
<th class="col-sm-3" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>