Need to prefix status_id with assets. for uniqueness (#4279)

This commit is contained in:
Brady Wetherington 2017-10-20 17:37:46 -07:00 committed by snipe
parent 25d3d66880
commit 8ac57d0121

View file

@ -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')) {