Fix inserting task structure with related tasks #142
|
@ -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
|
||||
|
||||
if rt.ID == 0 {
|
||||
rt.ListID = t.ListID
|
||||
err = rt.Create(user)
|
||||
|
|
Loading…
Reference in New Issue
does → do
Right, thanks!