1
0

feat(views): return position when retriving tasks

This commit is contained in:
kolaente
2024-03-16 11:48:50 +01:00
parent 786e67f692
commit f364f3bec8
7 changed files with 35 additions and 11 deletions

View File

@ -213,7 +213,7 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa
if err != nil {
return nil, 0, 0, err
}
return getTasksForProjects(s, []*Project{project}, a, opts)
return getTasksForProjects(s, []*Project{project}, a, opts, view)
}
// If the project ID is not set, we get all tasks for the user.
@ -253,5 +253,5 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa
}
}
return getTasksForProjects(s, projects, a, opts)
return getTasksForProjects(s, projects, a, opts, view)
}