From 9fbdd7d78762b4b11d1156384202ecaf8b9247b2 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 11 Jun 2017 02:39:12 -0400 Subject: [PATCH] Fix engine bug in getIssueByID (#1934) --- models/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue.go b/models/issue.go index b78c6ba3f1fc..8340595fca26 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.