From 61bce2b349cef12bfd51199dc3b73c89ab0d0ee7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 15 Nov 2023 12:56:36 +0100 Subject: [PATCH] fix(projects): don't return child projects multiple times --- pkg/models/project.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/models/project.go b/pkg/models/project.go index 41187c1481f..afb07a9aa50 100644 --- a/pkg/models/project.go +++ b/pkg/models/project.go @@ -416,6 +416,7 @@ func getUserProjectsStatement(parentProjectIDs []int64, userID int64, search str filterCond, getArchivedCond, parentCondition, + builder.NotIn("l.id", parentProjectIDs), )). OrderBy("position"). GroupBy("l.id")