diff options
author | Jason Song <i@wolfogre.com> | 2023-08-17 20:38:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 12:38:02 +0000 |
commit | c179ab423600b23f5b095a620e4d3b514353c0af (patch) | |
tree | a5d9b2518faacf0751bc9434ef63039d66da12ad | |
parent | c6b92c84fe5e4b1fad1711611d8a0d453fd7e311 (diff) | |
download | gitea-c179ab423600b23f5b095a620e4d3b514353c0af.tar.gz gitea-c179ab423600b23f5b095a620e4d3b514353c0af.zip |
Fix "issueReposQueryPattern does not match query" (#26556)
Fix
`https://github.com/go-gitea/gitea/pull/26545#discussion_r1295734340`
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
-rw-r--r-- | routers/web/user/home.go | 2 | ||||
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 8cc9cccc29..bf19cc513d 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -746,7 +746,7 @@ func getRepoIDs(reposQuery string) []int64 { return []int64{} } if !issueReposQueryPattern.MatchString(reposQuery) { - log.Warn("issueReposQueryPattern does not match query") + log.Warn("issueReposQueryPattern does not match query: %q", reposQuery) return []int64{} } diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 2897bb6dff..8d6cc67afe 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -74,7 +74,7 @@ <form class="list-header-search ui form ignore-dirty"> <div class="ui small search fluid action input"> <input type="hidden" name="type" value="{{$.ViewType}}"> - <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}}%2C{{end}}]"> + <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]"> <input type="hidden" name="sort" value="{{$.SortType}}"> <input type="hidden" name="state" value="{{$.State}}"> {{template "shared/searchinput" dict "locale" .locale "Value" $.Keyword}} |