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 0305a73 commit 6f3596eCopy full SHA for 6f3596e
models/project_issue.go
@@ -115,7 +115,9 @@ func (p *Project) NumClosedIssues() int {
115
func (p *Project) NumOpenIssues() int {
116
c, err := x.Table("project_issue").
117
Join("INNER", "issue", "project_issue.issue_id=issue.id").
118
- 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).
119
+ Cols("issue_id").
120
+ Count()
121
if err != nil {
122
return 0
123
}
0 commit comments