From 57dfdc5168f53a094c24505966303a6d0c60ea9a Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 24 Jun 2025 11:56:58 +0200 Subject: [PATCH] chore: adjust comment about bucketless tasks (#1004) docs: clarify bucketless task behavior --- pkg/models/kanban.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/models/kanban.go b/pkg/models/kanban.go index d09c760fc..3122d5321 100644 --- a/pkg/models/kanban.go +++ b/pkg/models/kanban.go @@ -276,9 +276,9 @@ func GetTasksInBucketsForView(s *xorm.Session, view *ProjectView, projects []*Pr return nil, err } - // Put all tasks in their buckets - // All tasks which are not associated to any bucket will have bucket id 0 which is the nil value for int64 - // Since we created a bucked with that id at the beginning, all tasks should be in there. + // Put all tasks in their buckets. + // Tasks without a bucket association are not returned by the query above + // and therefore will not be part of any bucket in the result. for _, task := range tasks { // Check if the bucket exists in the map to prevent nil pointer panics if _, exists := bucketMap[task.BucketID]; !exists {