Skip to content

Commit d4d5ab5

Browse files
committed
Modify milestone search keywords to be case insensitive (go-gitea#20266)
Milestone search keywords are now sensitive, this modification is changed to insensitive
1 parent 435038b commit d4d5ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/milestone.go

Lines changed: 1 addition & 1 deletion
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)