mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-31 16:00:05 -04: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()
|
||||
return errors.New("Updated more than one transaction split")
|
||||
}
|
||||
delete(s_map, t.Splits[i].SplitId)
|
||||
} else {
|
||||
t.Splits[i].SplitId = -1
|
||||
err := transaction.Insert(t.Splits[i])
|
||||
|
Loading…
Reference in New Issue
Block a user