summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-28 22:43:46 +0800
committerzeripath <art27@cantab.net>2019-12-28 14:43:46 +0000
commited67bbe4442cc26fc64102c04d6fbea348f52e7c (patch)
tree3fcd6b83162867ae5f206941fd01d138827b8822 /routers
parent1ea447aedf50f8340a67ed1705ec145d30385c9d (diff)
downloadgitea-ed67bbe4442cc26fc64102c04d6fbea348f52e7c.tar.gz
gitea-ed67bbe4442cc26fc64102c04d6fbea348f52e7c.zip
Fix repository issues pagination bug when there are more than one label filter (#9512)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 4810eecdc6..67c4ee3788 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -264,7 +264,8 @@ func issues(ctx *context.Context, milestoneID int64, isPullOption util.OptionalB
}
ctx.Data["IssueStats"] = issueStats
- ctx.Data["SelectLabels"] = com.StrTo(selectLabels).MustInt64()
+ ctx.Data["SelLabelIDs"] = labelIDs
+ ctx.Data["SelectLabels"] = selectLabels
ctx.Data["ViewType"] = viewType
ctx.Data["SortType"] = sortType
ctx.Data["MilestoneID"] = milestoneID