mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Allow sorting on min_amt
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dff7c43aed
commit
92b7c4b5ec
|
@ -136,6 +136,7 @@ class LicensesController extends Controller
|
||||||
'seats',
|
'seats',
|
||||||
'termination_date',
|
'termination_date',
|
||||||
'depreciation_id',
|
'depreciation_id',
|
||||||
|
'min_amt',
|
||||||
];
|
];
|
||||||
$sort = in_array($request->input('sort'), $allowed_columns) ? e($request->input('sort')) : 'created_at';
|
$sort = in_array($request->input('sort'), $allowed_columns) ? e($request->input('sort')) : 'created_at';
|
||||||
$licenses = $licenses->orderBy($sort, $order);
|
$licenses = $licenses->orderBy($sort, $order);
|
||||||
|
|
Loading…
Reference in a new issue