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 {
|
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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user