diff options
Diffstat (limited to 'models/issues/issue_project.go')
-rw-r--r-- | models/issues/issue_project.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index c9f4c9f533..04d12e055c 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.go @@ -13,11 +13,7 @@ import ( ) // LoadProject load the project the issue was assigned to -func (issue *Issue) LoadProject() (err error) { - return issue.loadProject(db.DefaultContext) -} - -func (issue *Issue) loadProject(ctx context.Context) (err error) { +func (issue *Issue) LoadProject(ctx context.Context) (err error) { if issue.Project == nil { var p project_model.Project if _, err = db.GetEngine(ctx).Table("project"). |