fix(views): make fetching tasks in kanban buckets through view actually work
This commit is contained in:
parent
df415f97a9
commit
cb111df2b7
@ -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 {
|
||||
|
@ -362,6 +362,7 @@ func CreateDefaultViewsForProject(s *xorm.Session, project *Project, a web.Auth,
|
||||
Title: "Kanban",
|
||||
ViewKind: ProjectViewKindKanban,
|
||||
Position: 400,
|
||||
BucketConfigurationMode: BucketConfigurationModeManual,
|
||||
}
|
||||
err = kanban.Create(s, a)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user