Skip to content

Commit 6d55b52

Browse files
committed
Attribute search should be lowercase, since we are comparing against $o->name_lc
1 parent 16a1f85 commit 6d55b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/SearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function search(Request $request): Collection
4545
$attrs = $so
4646
->schema('attributetypes')
4747
->sortBy('name')
48-
->filter(fn($item)=>Str::contains($item->name_lc,$request->term));
48+
->filter(fn($item)=>Str::contains($item->name_lc,strtolower($request->term)));
4949

5050
return $attrs
5151
->map(fn($item)=>[

0 commit comments

Comments
 (0)