Fix to submit form when creating issue comment.

This commit is contained in:
shimamoto
2013-06-25 14:11:01 +09:00
parent 1a4510201f
commit 317e2b6ea3
3 changed files with 29 additions and 55 deletions

View File

@@ -60,15 +60,13 @@ trait IssuesService {
def saveComment(owner: String, repository: String, loginUser: String,
issueId: Int, content: String) =
Query(IssueComments) filter {
_.commentId is ( IssueComments.autoInc insert (
owner,
repository,
issueId,
loginUser,
content,
currentDate,
currentDate) ).bind
} firstOption
IssueComments.autoInc insert (
owner,
repository,
issueId,
loginUser,
content,
currentDate,
currentDate)
}