From d7f861596476027067bbd6664b778e6a5ca5db82 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Nov 2017 20:10:36 -0700 Subject: [PATCH] Fixed query for location ID --- app/Http/Controllers/Api/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 1f2f9865ff..2f44ac7965 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -112,7 +112,7 @@ class AssetsController extends Controller } if ($request->has('location_id')) { - $assets->ByLocationId($request->input('location_id')); + $assets->where('assets.location_id', '=', $request->input('location_id')); } if ($request->has('supplier_id')) {