diff options
Diffstat (limited to 'routers/web/repo/milestone.go')
-rw-r--r-- | routers/web/repo/milestone.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/repo/milestone.go b/routers/web/repo/milestone.go index c8eda66680..675cfef0aa 100644 --- a/routers/web/repo/milestone.go +++ b/routers/web/repo/milestone.go @@ -36,7 +36,7 @@ func Milestones(ctx *context.Context) { ctx.Data["PageIsIssueList"] = true ctx.Data["PageIsMilestones"] = true - isShowClosed := ctx.Form("state") == "closed" + isShowClosed := ctx.FormString("state") == "closed" stats, err := models.GetMilestonesStatsByRepoCond(builder.And(builder.Eq{"id": ctx.Repo.Repository.ID})) if err != nil { ctx.ServerError("MilestoneStats", err) @@ -45,9 +45,9 @@ func Milestones(ctx *context.Context) { ctx.Data["OpenCount"] = stats.OpenCount ctx.Data["ClosedCount"] = stats.ClosedCount - sortType := ctx.Form("sort") + sortType := ctx.FormString("sort") - keyword := strings.Trim(ctx.Form("q"), " ") + keyword := strings.Trim(ctx.FormString("q"), " ") page := ctx.FormInt("page") if page <= 1 { |