loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix bug when project board get open issue number (#17703)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

authored by

Lunny Xiao
wxiaoguang
techknowlogick
and committed by
GitHub
9361b65f 96ec656c

+3 -1
+3 -1
models/project_issue.go
··· 121 121 func (p *Project) NumOpenIssues() int { 122 122 c, err := db.GetEngine(db.DefaultContext).Table("project_issue"). 123 123 Join("INNER", "issue", "project_issue.issue_id=issue.id"). 124 - Where("project_issue.project_id=? AND issue.is_closed=?", p.ID, false).Count("issue.id") 124 + Where("project_issue.project_id=? AND issue.is_closed=?", p.ID, false). 125 + Cols("issue_id"). 126 + Count() 125 127 if err != nil { 126 128 return 0 127 129 }