A free open source IT asset/license management system
Fixed #7947 - Added rtd_location_id to API search
snipe79232fc43489
diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.phpindex cda775e91f..205b91a8e2 100644--- a/app/Http/Controllers/Api/AssetsController.php+++ b/app/Http/Controllers/Api/AssetsController.php@@ -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'));}