summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-07-26 18:20:38 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-27 09:20:38 +0800
commita27863b6d15026cf36b164707331fd59ffb68931 (patch)
tree82bd393e796d4330213599b492b40b0100288c8a /models/issue.go
parent5f37944dff7f8e48b3c5ce27bd1b77907b71f092 (diff)
downloadgitea-a27863b6d15026cf36b164707331fd59ffb68931.tar.gz
gitea-a27863b6d15026cf36b164707331fd59ffb68931.zip
Fix issue updated_unix bug (#2204)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index a83cfd6504..d40b81eb32 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -580,6 +580,7 @@ func (issue *Issue) ReadBy(userID int64) error {
}
func updateIssueCols(e Engine, issue *Issue, cols ...string) error {
+ cols = append(cols, "updated_unix")
if _, err := e.Id(issue.ID).Cols(cols...).Update(issue); err != nil {
return err
}