Merge pull request #10514 from uberbrady/fix_double_wildcard_query_requestable

Fixed extraneous wildcard query in requestable asset search
This commit is contained in:
snipe 2022-01-13 19:39:08 -08:00 committed by GitHub
commit 207ff014b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -942,7 +942,9 @@ class AssetsController extends Controller
$offset = request('offset', 0);
$limit = $request->input('limit', 50);
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';
$assets->TextSearch($request->input('search'));
if ($request->filled('search')) {
$assets->TextSearch($request->input('search'));
}
switch ($request->input('sort')) {
case 'model':