Przeglądaj źródła

#3417 wrong dashboard issue count for create by you

Unknwon 8 lat temu
rodzic
commit
5448d29b2e
4 zmienionych plików z 4 dodań i 4 usunięć
  1. 1 1
      README.md
  2. 1 1
      gogs.go
  3. 1 1
      models/issue.go
  4. 1 1
      templates/.VERSION

+ 1 - 1
README.md

@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
 
 ![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
 
-##### Current tip version: 0.9.70 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
+##### Current tip version: 0.9.71 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 
 | Web | UI  | Preview  |
 |:-------------:|:-------:|:-------:|

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.9.70.0808"
+const APP_VER = "0.9.71.0808"
 
 func init() {
 	runtime.GOMAXPROCS(runtime.NumCPU())

+ 1 - 1
models/issue.go

@@ -911,7 +911,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul
 		Count(&Issue{})
 
 	stats.CreateCount, _ = countSession(false, isPull, repoID, repoIDs).
-		And("assignee_id = ?", uid).
+		And("poster_id = ?", uid).
 		Count(&Issue{})
 
 	openCountSession := countSession(false, isPull, repoID, repoIDs)

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.9.70.0808
+0.9.71.0808