From 5d4e704fac36a0b2c916bb88841a9db46bd4c2bb Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 21 Jun 2023 09:26:54 +0100 Subject: [PATCH] Added a comment Signed-off-by: snipe --- app/Http/Controllers/Api/AssetsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 97f2f9eab9..bd64ae8c98 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -241,6 +241,7 @@ class AssetsController extends Controller $assets->TextSearch($request->input('search')); } + // Leave these under the TextSearch scope, else the fuzziness will override the specific ID (status ID, etc) requested if ($request->filled('status_id')) { $assets->where('assets.status_id', '=', $request->input('status_id')); }