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 authored Jul 6, 2022
1 parent a704e4b commit 970288f
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 970288f

Please sign in to comment.