Fixed #5842 - added components to location detail view

This commit is contained in:
snipe
2018-07-16 21:50:14 -07:00
parent 8a25677a8d
commit d9fa2f0e91
2 changed files with 39 additions and 0 deletions
@@ -39,6 +39,10 @@ class ComponentsController extends Controller
$components->where('category_id','=',$request->input('category_id'));
}
if ($request->has('location_id')) {
$components->where('location_id','=',$request->input('location_id'));
}
$offset = request('offset', 0);
$limit = request('limit', 50);