From 8ac57d0121ed84cac1d4fc5cab47a89d9dfa7dbc Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Fri, 20 Oct 2017 17:37:46 -0700 Subject: [PATCH] Need to prefix status_id with `assets.` for uniqueness (#4279) --- 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 6b005c2bc8..180a51f7ae 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -98,7 +98,7 @@ class AssetsController extends Controller // These are used by the API to query against specific ID numbers if ($request->has('status_id')) { - $assets->where('status_id', '=', $request->input('status_id')); + $assets->where('assets.status_id', '=', $request->input('status_id')); } if ($request->has('model_id')) {