diff --git a/pkg/modules/migration/create_from_structure.go b/pkg/modules/migration/create_from_structure.go index b63a6c03dcb..c11e474b0ee 100644 --- a/pkg/modules/migration/create_from_structure.go +++ b/pkg/modules/migration/create_from_structure.go @@ -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