diff options
author | Unknwon <u@gogs.io> | 2015-10-24 03:36:47 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-24 03:36:47 -0400 |
commit | 0fbb8c8826771e92e890fb1c72b356d3e62c7b01 (patch) | |
tree | 2695707e4789a6611fa35393b06631848657469a /models/issue.go | |
parent | e0aab4a7f6c1f1b5cc7fa40e2c09623b635bc4a6 (diff) | |
download | gitea-0fbb8c8826771e92e890fb1c72b356d3e62c7b01.tar.gz gitea-0fbb8c8826771e92e890fb1c72b356d3e62c7b01.zip |
New push to head repo of head branch: regenerate patch and retest apply
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/models/issue.go b/models/issue.go index 0b14c5838a..1cefa42f5a 100644 --- a/models/issue.go +++ b/models/issue.go @@ -813,23 +813,22 @@ func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen return numOpen, numClosed } -// updateIssue updates all fields of given issue. func updateIssue(e Engine, issue *Issue) error { _, err := e.Id(issue.ID).AllCols().Update(issue) return err } -// updateIssueCols update specific fields of given issue. +// UpdateIssue updates all fields of given issue. +func UpdateIssue(issue *Issue) error { + return updateIssue(x, issue) +} + +// updateIssueCols updates specific fields of given issue. func updateIssueCols(e Engine, issue *Issue, cols ...string) error { _, err := e.Id(issue.ID).Cols(cols...).Update(issue) return err } -// UpdateIssue updates information of issue. -func UpdateIssue(issue *Issue) error { - return updateIssue(x, issue) -} - func updateIssueUsersByStatus(e Engine, issueID int64, isClosed bool) error { _, err := e.Exec("UPDATE `issue_user` SET is_closed=? WHERE issue_id=?", isClosed, issueID) return err |