1
0

Fixed labels being displayed multiple times if they were associated with more than one task (#99)

This commit is contained in:
konrad
2019-09-20 15:52:09 +00:00
committed by Gitea
parent 71ef86e0df
commit 8d5a2685c4
7 changed files with 40 additions and 26 deletions

View File

@ -144,10 +144,11 @@ func (l *Label) ReadAll(search string, a web.Auth, page int) (ls interface{}, er
}
return getLabelsByTaskIDs(&LabelByTaskIDsOptions{
Search: search,
User: u,
TaskIDs: taskIDs,
GetUnusedLabels: true,
Search: search,
User: u,
TaskIDs: taskIDs,
GetUnusedLabels: true,
GroupByLabelIDsOnly: true,
})
}