(refs #488) Fixed the action for issue and comment content change.

This commit is contained in:
shimamoto
2014-10-05 17:13:58 +09:00
parent fc806b8813
commit b1017140aa
6 changed files with 47 additions and 52 deletions

View File

@@ -225,22 +225,14 @@ trait IssuesService {
registeredDate = currentDate,
updatedDate = currentDate)
def updateIssueTitle(owner: String, repository: String, issueId: Int, title: String)(implicit s: Session) =
def updateIssue(owner: String, repository: String, issueId: Int,
title: String, content: Option[String])(implicit s: Session) =
Issues
.filter (_.byPrimaryKey(owner, repository, issueId))
.map { t =>
(t.title, t.updatedDate)
(t.title, t.content.?, t.updatedDate)
}
.update (title, currentDate)
// def updateIssue(owner: String, repository: String, issueId: Int,
// title: String, content: Option[String])(implicit s: Session) =
// Issues
// .filter (_.byPrimaryKey(owner, repository, issueId))
// .map { t =>
// (t.title, t.content.?, t.updatedDate)
// }
// .update (title, content, currentDate)
.update (title, content, currentDate)
def updateAssignedUserName(owner: String, repository: String, issueId: Int,
assignedUserName: Option[String])(implicit s: Session) =