fix(migration): ignore tasks with empty titles
This commit is contained in:
parent
774859b577
commit
3ff4d81618
@ -205,6 +205,11 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
|
|||||||
oldid := t.ID
|
oldid := t.ID
|
||||||
t.ProjectID = project.ID
|
t.ProjectID = project.ID
|
||||||
err = t.Create(s, user)
|
err = t.Create(s, user)
|
||||||
|
|
||||||
|
if err != nil && models.IsErrTaskCannotBeEmpty(err) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user