Skip to content

Commit 970288f

Browse files
authored
Modify milestone search keywords to be case insensitive (#20266)
Milestone search keywords are now sensitive, this modification is changed to insensitive
1 parent a704e4b commit 970288f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/milestone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
361361
}
362362

363363
if len(opts.Name) != 0 {
364-
cond = cond.And(builder.Like{"name", opts.Name})
364+
cond = cond.And(builder.Like{"UPPER(name)", strings.ToUpper(opts.Name)})
365365
}
366366

367367
return cond

0 commit comments

Comments
 (0)