Skip to content

Commit c179ab4

Browse files
wolfogrewxiaoguangGiteaBot
authored
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>
1 parent c6b92c8 commit c179ab4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: routers/web/user/home.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ func getRepoIDs(reposQuery string) []int64 {
746746
return []int64{}
747747
}
748748
if !issueReposQueryPattern.MatchString(reposQuery) {
749-
log.Warn("issueReposQueryPattern does not match query")
749+
log.Warn("issueReposQueryPattern does not match query: %q", reposQuery)
750750
return []int64{}
751751
}
752752

Diff for: templates/user/dashboard/issues.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<form class="list-header-search ui form ignore-dirty">
7575
<div class="ui small search fluid action input">
7676
<input type="hidden" name="type" value="{{$.ViewType}}">
77-
<input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}}%2C{{end}}]">
77+
<input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]">
7878
<input type="hidden" name="sort" value="{{$.SortType}}">
7979
<input type="hidden" name="state" value="{{$.State}}">
8080
{{template "shared/searchinput" dict "locale" .locale "Value" $.Keyword}}

0 commit comments

Comments
 (0)