Fix inserting task structure with related tasks #142

Merged
konrad merged 4 commits from fix/migration-subtasks into master 2020-02-18 22:00:55 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d6f9f4ece7 - Show all commits

View File

@ -76,7 +76,7 @@ func InsertFromStructure(str []*models.NamespaceWithLists, user *user.User) (err
}
for _, rt := range tasks {
// First create the related tasks if they does not exist
// First create the related tasks if they do not exist

does → do

does → do

Right, thanks!

Right, thanks!
if rt.ID == 0 {
rt.ListID = t.ListID
err = rt.Create(user)