1
0

fix(views): return tasks in their buckets

This commit is contained in:
kolaente
2024-03-15 23:31:28 +01:00
parent ca0550acea
commit 398c9f1056
4 changed files with 52 additions and 39 deletions

View File

@ -213,7 +213,7 @@ func GetTasksInBucketsForView(s *xorm.Session, view *ProjectView, opts *taskSear
opts.sortby = []*sortParam{
{
projectViewID: view.ProjectID,
projectViewID: view.ID,
orderBy: orderAscending,
sortBy: taskPropertyPosition,
},
@ -260,6 +260,10 @@ func GetTasksInBucketsForView(s *xorm.Session, view *ProjectView, opts *taskSear
return nil, err
}
for _, t := range ts {
t.BucketID = bucket.ID
}
bucket.Count = total
tasks = append(tasks, ts...)