1
0
Fork 0
forked from forgejo/forgejo

Modify milestone search keywords to be case insensitive again (#20513)

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Tyrone Yeh 2022-07-29 00:58:04 +08:00 committed by GitHub
parent 2c108d20ba
commit 8e3da0e27f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 11 deletions

View file

@ -361,7 +361,7 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
}
if len(opts.Name) != 0 {
cond = cond.And(builder.Like{"UPPER(name)", strings.ToUpper(opts.Name)})
cond = cond.And(db.BuildCaseInsensitiveLike("name", opts.Name))
}
return cond