fix(views): return tasks in their buckets
This commit is contained in:
@ -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...)
|
||||
|
Reference in New Issue
Block a user