mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-28 08:04:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user