(refs #488) Fixed the action for issue title change.

This commit is contained in:
shimamoto
2014-10-05 04:43:11 +09:00
parent 9851c7d93d
commit 4ffbf89e74
3 changed files with 78 additions and 19 deletions

View File

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