We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ec656 commit 9361b65Copy full SHA for 9361b65
models/project_issue.go
@@ -121,7 +121,9 @@ func (p *Project) NumClosedIssues() int {
121
func (p *Project) NumOpenIssues() int {
122
c, err := db.GetEngine(db.DefaultContext).Table("project_issue").
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")
+ Where("project_issue.project_id=? AND issue.is_closed=?", p.ID, false).
125
+ Cols("issue_id").
126
+ Count()
127
if err != nil {
128
return 0
129
}
0 commit comments