Skip to content

Commit 1cedf36

Browse files
GiteaBotwolfogrewxiaoguang
authored
Fix "issueReposQueryPattern does not match query" (#26556) (#26564)
Backport #26556 by @wolfogre Fix `https://github.com/go-gitea/gitea/pull/26545#discussion_r1295734340` Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 7da85fa commit 1cedf36

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
@@ -695,7 +695,7 @@ func getRepoIDs(reposQuery string) []int64 {
695695
return []int64{}
696696
}
697697
if !issueReposQueryPattern.MatchString(reposQuery) {
698-
log.Warn("issueReposQueryPattern does not match query")
698+
log.Warn("issueReposQueryPattern does not match query: %q", reposQuery)
699699
return []int64{}
700700
}
701701

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
<input name="q" value="{{$.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}...">

0 commit comments

Comments
 (0)