mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed #5293 - component category drilldown
This commit is contained in:
parent
79f061be93
commit
201efecafa
|
@ -35,6 +35,10 @@ class ComponentsController extends Controller
|
|||
$components->where('company_id','=',$request->input('company_id'));
|
||||
}
|
||||
|
||||
if ($request->has('category_id')) {
|
||||
$components->where('category_id','=',$request->input('category_id'));
|
||||
}
|
||||
|
||||
$offset = request('offset', 0);
|
||||
$limit = request('limit', 50);
|
||||
|
||||
|
|
Loading…
Reference in a new issue