1
0

feat(projects): get all projects recursively

This commit is contained in:
kolaente
2022-12-29 19:25:09 +01:00
parent 4c698dc7c7
commit d799915e78
3 changed files with 57 additions and 21 deletions

View File

@ -180,7 +180,7 @@ func GetLabelsByTaskIDs(s *xorm.Session, opts *LabelByTaskIDsOptions) (ls []*Lab
builder.
Select("id").
From("tasks").
Where(builder.In("project_id", getUserProjectsStatement(opts.GetForUser, "", false).Select("l.id"))),
Where(builder.In("project_id", getUserProjectsStatement(nil, opts.GetForUser, "", false).Select("l.id"))),
), cond)
}
if opts.GetUnusedLabels {