aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-07 17:23:02 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-07 17:23:02 -0400
commite05b1385fb093fbde1a6248a1f548f778fb09d09 (patch)
tree1e28efa7228d8c9c24f5d28ba81359673bfda8f1 /models/issue.go
parent8b6766ecbee91f0dc8d7a5c20262b2e2d96bb694 (diff)
downloadgitea-e05b1385fb093fbde1a6248a1f548f778fb09d09.tar.gz
gitea-e05b1385fb093fbde1a6248a1f548f778fb09d09.zip
Bug fix
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue.go b/models/issue.go
index b93989435a..f052730059 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -174,15 +174,15 @@ func NewIssueUserPairs(rid, iid, oid, uid, aid int64) (err error) {
}
// In case owner is not watching.
- ws = append(ws, &Watch{Uid: id})
+ ws = append(ws, &Watch{UserId: id})
}
for _, w := range ws {
- if w.Uid == 0 {
+ if w.UserId == 0 {
continue
}
- iu.Uid = w.Uid
+ iu.Uid = w.UserId
iu.IsPoster = iu.Uid == uid
iu.IsAssigned = iu.Uid == aid
if _, err = orm.Insert(iu); err != nil {