]> source.dussan.org Git - gitea.git/commitdiff
Fix engine bug in getIssueByID (#1934)
authorEthan Koenig <etk39@cornell.edu>
Sun, 11 Jun 2017 06:39:12 +0000 (02:39 -0400)
committerLunny Xiao <xiaolunwen@gmail.com>
Sun, 11 Jun 2017 06:39:12 +0000 (14:39 +0800)
models/issue.go

index b78c6ba3f1fc37a585164932af6e1be78255a6c5..8340595fca26f1264fecef7394562c7e4fdafcd5 100644 (file)
@@ -993,7 +993,7 @@ func getIssueByID(e Engine, id int64) (*Issue, error) {
        } else if !has {
                return nil, ErrIssueNotExist{id, 0, 0}
        }
-       return issue, issue.LoadAttributes()
+       return issue, issue.loadAttributes(e)
 }
 
 // GetIssueByID returns an issue by given ID.