diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-30 11:12:03 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-04-30 11:12:03 +0800 |
commit | 1e9f376d3dd7a3510010be8c89196edb3f6e2e49 (patch) | |
tree | c32460f20dff58d9566fe2c72219f1d4ecc9918a /models | |
parent | 2401e68d7ed7d53425293ad32d231542d03bbef3 (diff) | |
download | gitea-1e9f376d3dd7a3510010be8c89196edb3f6e2e49.tar.gz gitea-1e9f376d3dd7a3510010be8c89196edb3f6e2e49.zip |
bug fixed
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index f14030df5e..26b8cecdd5 100644 --- a/models/issue.go +++ b/models/issue.go @@ -71,7 +71,7 @@ func CreateIssue(userId, repoId, milestoneId, assigneeId int64, issueCount int, } if err = sess.Commit(); err != nil { - sess.Rollback() + //sess.Rollback() return nil, err } @@ -196,7 +196,7 @@ func CreateComment(userId, repoId, issueId, commitId, line int64, cmtType int, c defer sess.Close() sess.Begin() - if _, err := orm.Insert(&Comment{PosterId: userId, Type: cmtType, IssueId: issueId, + if _, err := sess.Insert(&Comment{PosterId: userId, Type: cmtType, IssueId: issueId, CommitId: commitId, Line: line, Content: content}); err != nil { sess.Rollback() return err |