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
Signed by: konrad
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 {
err = s.
Where("project_id = ?", view.ProjectID).
Where("project_view_id = ?", view.ID).
OrderBy("position").
Find(&buckets)
if err != nil {

View File

@ -358,10 +358,11 @@ func CreateDefaultViewsForProject(s *xorm.Session, project *Project, a web.Auth,
}
kanban := &ProjectView{
ProjectID: project.ID,
Title: "Kanban",
ViewKind: ProjectViewKindKanban,
Position: 400,
ProjectID: project.ID,
Title: "Kanban",
ViewKind: ProjectViewKindKanban,
Position: 400,
BucketConfigurationMode: BucketConfigurationModeManual,
}
err = kanban.Create(s, a)
if err != nil {