mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -115,7 +115,9 @@ func (p *Project) NumClosedIssues() int {
 | 
				
			|||||||
func (p *Project) NumOpenIssues() int {
 | 
					func (p *Project) NumOpenIssues() int {
 | 
				
			||||||
	c, err := x.Table("project_issue").
 | 
						c, err := x.Table("project_issue").
 | 
				
			||||||
		Join("INNER", "issue", "project_issue.issue_id=issue.id").
 | 
							Join("INNER", "issue", "project_issue.issue_id=issue.id").
 | 
				
			||||||
		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).
 | 
				
			||||||
 | 
							Cols("issue_id").
 | 
				
			||||||
 | 
							Count()
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return 0
 | 
							return 0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user