mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
(refs #488) Fixed the action for issue title change.
This commit is contained in:
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user