mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed #7947 - Added rtd_location_id to API search
This commit is contained in:
parent
7f18983a49
commit
79232fc434
|
@ -121,6 +121,10 @@ class AssetsController extends Controller
|
||||||
$assets->where('assets.location_id', '=', $request->input('location_id'));
|
$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')) {
|
if ($request->filled('supplier_id')) {
|
||||||
$assets->where('assets.supplier_id', '=', $request->input('supplier_id'));
|
$assets->where('assets.supplier_id', '=', $request->input('supplier_id'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue