sklad: fix index update when changing parent

This commit is contained in:
Přemysl Eric Janouch 2019-04-19 13:40:47 +02:00
parent 2d1e01a1a2
commit 4ad4bcf9e7
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ func dbContainerUpdate(c *Container, updated Container) error {
}
indexChildren[c.Parent] = filterContainer(indexChildren[c.Parent], c)
indexChildren[newID] = append(indexChildren[newID], c)
indexChildren[updated.Parent] = append(indexChildren[updated.Parent], c)
}
*c = updated
return dbCommit()