fix(import): make sure importing works if parent / child projects are created in a different order
Resolves https://community.vikunja.io/t/migrating-from-self-hosted-instance/1805
This commit is contained in:
parent
66b44da85b
commit
d35c30dd0c
@ -60,6 +60,7 @@ func insertFromStructure(s *xorm.Session, str []*models.ProjectWithTasksAndBucke
|
||||
|
||||
if p.ParentProjectID != 0 {
|
||||
childRelations[p.ParentProjectID] = append(childRelations[p.ParentProjectID], oldID)
|
||||
p.ParentProjectID = 0
|
||||
}
|
||||
|
||||
p.ID = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user