sklad: fix index update when changing parent
This commit is contained in:
parent
2d1e01a1a2
commit
4ad4bcf9e7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue