diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-29 07:50:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-29 07:50:25 -0400 |
commit | 828282882066aa4e8bd8fb0c083c530607bc34bb (patch) | |
tree | 4ac056c6d088a046d5b848c872c363cd6bc0276b /routers/repo | |
parent | 879ef8d81fa7dd194a7482c870cecab5a5ac964b (diff) |
Fix action email bug
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 14876e18..c89c8b56 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -105,7 +105,7 @@ func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.Creat } // Notify watchers. - if err = models.NotifyWatchers(&models.Action{ActUserId: ctx.User.Id, ActUserName: ctx.User.Name, + if err = models.NotifyWatchers(&models.Action{ActUserId: ctx.User.Id, ActUserName: ctx.User.Name, ActEmail: ctx.User.Email, OpType: models.OP_CREATE_ISSUE, Content: fmt.Sprintf("%d|%s", issue.Index, issue.Name), RepoId: ctx.Repo.Repository.Id, RepoName: ctx.Repo.Repository.Name, RefName: ""}); err != nil { ctx.Handle(200, "issue.CreateIssue", err) |