mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Check ignored errors for issue and milestone count (#3213)
This commit is contained in:
parent
9a0e2a8b07
commit
0e384c6376
3 changed files with 57 additions and 21 deletions
|
@ -1067,7 +1067,11 @@ func Milestones(ctx *context.Context) {
|
|||
ctx.Data["PageIsMilestones"] = true
|
||||
|
||||
isShowClosed := ctx.Query("state") == "closed"
|
||||
openCount, closedCount := models.MilestoneStats(ctx.Repo.Repository.ID)
|
||||
openCount, closedCount, err := models.MilestoneStats(ctx.Repo.Repository.ID)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "MilestoneStats", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["OpenCount"] = openCount
|
||||
ctx.Data["ClosedCount"] = closedCount
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue