From 11c7f199c42abd5b82a778a9da779fd8e3e71c15 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 31 May 2017 08:18:21 -0400 Subject: [PATCH] Don't delete splits when updating them --- transactions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transactions.go b/transactions.go index b6d457f..f6731af 100644 --- a/transactions.go +++ b/transactions.go @@ -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])