1
0

fix(views): make fetching tasks in kanban buckets through view actually work

This commit is contained in:
kolaente 2024-03-15 22:49:18 +01:00
parent df415f97a9
commit cb111df2b7
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 5 deletions

View File

@ -169,7 +169,7 @@ func GetTasksInBucketsForView(s *xorm.Session, view *ProjectView, opts *taskSear
if view.BucketConfigurationMode == BucketConfigurationModeManual { if view.BucketConfigurationMode == BucketConfigurationModeManual {
err = s. err = s.
Where("project_id = ?", view.ProjectID). Where("project_view_id = ?", view.ID).
OrderBy("position"). OrderBy("position").
Find(&buckets) Find(&buckets)
if err != nil { if err != nil {

View File

@ -362,6 +362,7 @@ func CreateDefaultViewsForProject(s *xorm.Session, project *Project, a web.Auth,
Title: "Kanban", Title: "Kanban",
ViewKind: ProjectViewKindKanban, ViewKind: ProjectViewKindKanban,
Position: 400, Position: 400,
BucketConfigurationMode: BucketConfigurationModeManual,
} }
err = kanban.Create(s, a) err = kanban.Create(s, a)
if err != nil { if err != nil {