mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 21:04:40 +02:00
Rename LoadProject to LoadProjects
This commit is contained in:
parent
d132f84323
commit
967a233cbe
@ -327,7 +327,7 @@ func (issue *Issue) LoadAttributes(ctx context.Context) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = issue.LoadProject(ctx); err != nil {
|
||||
if err = issue.LoadProjects(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
// LoadProject load the project the issue was assigned to
|
||||
func (issue *Issue) LoadProject(ctx context.Context) (err error) {
|
||||
func (issue *Issue) LoadProjects(ctx context.Context) (err error) {
|
||||
if len(issue.Projects) == 0 {
|
||||
err = db.GetEngine(ctx).Table("project").
|
||||
Join("INNER", "project_issue", "project.id=project_issue.project_id").
|
||||
|
Loading…
x
Reference in New Issue
Block a user