0
0
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:
Tyrone Yeh 2025-05-11 15:10:44 +08:00
parent d132f84323
commit 967a233cbe
No known key found for this signature in database
GPG Key ID: AC8B5AA00375E170
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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").