diff options
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 |