summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-11 02:39:12 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-11 14:39:12 +0800
commit9fbdd7d78762b4b11d1156384202ecaf8b9247b2 (patch)
tree633d8ad622708e52457674b92da40ced6933cbda /models/issue.go
parente0a63a20e04ead19e87c27c1e209d1d431fc51ba (diff)
downloadgitea-9fbdd7d78762b4b11d1156384202ecaf8b9247b2.tar.gz
gitea-9fbdd7d78762b4b11d1156384202ecaf8b9247b2.zip
Fix engine bug in getIssueByID (#1934)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index b78c6ba3f1..8340595fca 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -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.