mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
fix: quicksearch searching by null throws error
The middleware automatically converts empty strings to null. We want to accept empty strings here for the search to work. Currently, the regex throws an error when a null is passed to it.
This commit is contained in:
@@ -27,7 +27,7 @@ class QuickSearchController extends Controller
|
||||
{
|
||||
public function index(Request $request): \Illuminate\Http\JsonResponse
|
||||
{
|
||||
$query = $request->input('query');
|
||||
$query = $request->input('query', '');
|
||||
|
||||
$filters = [
|
||||
'deleted_at IS NULL',
|
||||
|
||||
Reference in New Issue
Block a user