Skip to content

Commit

Permalink
Modify milestone search keywords to be case insensitive (go-gitea#20266)
Browse files Browse the repository at this point in the history
Milestone search keywords are now sensitive, this modification is changed to insensitive
  • Loading branch information
tyroneyeh committed Jul 27, 2022
1 parent 435038b commit d4d5ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issues/milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
}

if len(opts.Name) != 0 {
cond = cond.And(builder.Like{"name", opts.Name})
cond = cond.And(builder.Like{"UPPER(name)", strings.ToUpper(opts.Name)})
}

return cond
Expand Down

0 comments on commit d4d5ab5

Please sign in to comment.