This commit is contained in:
Unknown 2014-05-07 17:23:02 -04:00
parent 8b6766ecbe
commit e05b1385fb
4 changed files with 9 additions and 9 deletions

View file

@ -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 {