aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
authorTyrone Yeh <tyrone_yeh@draytek.com>2022-07-07 05:05:12 +0800
committerGitHub <noreply@github.com>2022-07-06 22:05:12 +0100
commit970288f0b234abd34c8499df108dfe9cbe439315 (patch)
tree0783af8d05866e93d26a0bb1ef92c09dee8b4f8c /models/issues
parenta704e4b547e9ef67ac0e8ddd49cc2f1d3d567d1f (diff)
downloadgitea-970288f0b234abd34c8499df108dfe9cbe439315.tar.gz
gitea-970288f0b234abd34c8499df108dfe9cbe439315.zip
Modify milestone search keywords to be case insensitive (#20266)
Milestone search keywords are now sensitive, this modification is changed to insensitive
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/milestone.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/milestone.go b/models/issues/milestone.go
index fba599e6ec..c49799f391 100644
--- a/models/issues/milestone.go
+++ b/models/issues/milestone.go
@@ -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