Added a comment

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-06-21 09:26:54 +01:00
parent 2d9ddab3f0
commit 5d4e704fac

View file

@ -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'));
}