fix(projects): don't remove parent project id if the parent project is available in the same run
continuous-integration/drone/push Build is passing Details

Resolves https://github.com/go-vikunja/frontend/issues/139
This commit is contained in:
kolaente 2024-01-28 15:28:08 +01:00
parent 30a2dcd04c
commit 96b4f2d1db
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -453,6 +453,10 @@ func getAllProjectsForUser(s *xorm.Session, userID int64, parentProjectIDs []int
parentIDsMap[id] = true
}
for _, project := range currentProjects {
parentIDsMap[project.ID] = true
}
newParentIDs := []int64{}
for _, project := range currentProjects {
if project.IsArchived {