Fixed #7947 - Added rtd_location_id to API search

This commit is contained in:
snipe 2020-04-08 11:00:04 -07:00
parent 7f18983a49
commit 79232fc434
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -121,6 +121,10 @@ class AssetsController extends Controller
$assets->where('assets.location_id', '=', $request->input('location_id'));
}
if ($request->filled('rtd_location_id')) {
$assets->where('assets.rtd_location_id', '=', $request->input('rtd_location_id'));
}
if ($request->filled('supplier_id')) {
$assets->where('assets.supplier_id', '=', $request->input('supplier_id'));
}