Skip to content

Commit d215623

Browse files
committed
Merge branch 'lunny/fix_project_issues_list' of github.com:lunny/gitea into lunny/fix_project_issues_list
2 parents 5a106cf + 25ebf7c commit d215623

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

models/project/column.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ func (p *Project) getDefaultColumn(ctx context.Context) (*Column, error) {
261261
return nil, ErrProjectColumnNotExist{ColumnID: 0}
262262
}
263263

264-
// MustDefaultColumn returns the default column for a project, get the first one if exist one and creating one if it does not exist
264+
// MustDefaultColumn returns the default column for a project.
265+
// If one exists, it is returned
266+
// If none exists, the first column will be elevated to the default column of this project
265267
func (p *Project) MustDefaultColumn(ctx context.Context) (*Column, error) {
266268
c, err := p.getDefaultColumn(ctx)
267269
if err != nil && !IsErrProjectColumnNotExist(err) {

services/projects/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func MoveIssuesOnProjectColumn(ctx context.Context, doer *user_model.User, colum
8686
})
8787
}
8888

89-
// LoadIssuesFromProject load issues assigned to the project
89+
// LoadIssuesFromProject load issues assigned to each project column inside the given project
9090
func LoadIssuesFromProject(ctx context.Context, project *project_model.Project, opts *issues_model.IssuesOptions) (map[int64]issues_model.IssueList, error) {
9191
issueList, err := issues_model.Issues(ctx, opts.Copy(func(o *issues_model.IssuesOptions) {
9292
o.ProjectID = project.ID

0 commit comments

Comments
 (0)