mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
Don't delete splits when updating them
This commit is contained in:
parent
8855107e52
commit
11c7f199c4
@ -352,6 +352,7 @@ func UpdateTransaction(t *Transaction, user *User) error {
|
|||||||
transaction.Rollback()
|
transaction.Rollback()
|
||||||
return errors.New("Updated more than one transaction split")
|
return errors.New("Updated more than one transaction split")
|
||||||
}
|
}
|
||||||
|
delete(s_map, t.Splits[i].SplitId)
|
||||||
} else {
|
} else {
|
||||||
t.Splits[i].SplitId = -1
|
t.Splits[i].SplitId = -1
|
||||||
err := transaction.Insert(t.Splits[i])
|
err := transaction.Insert(t.Splits[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user