fix(projects): don't remove parent project id if the parent project is available in the same run
Resolves https://github.com/go-vikunja/frontend/issues/139
This commit is contained in:
parent
30a2dcd04c
commit
96b4f2d1db
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user