From f9a4d0a99a1891cafa6f2d8081391b0943da8fa3 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sun, 28 May 2017 20:27:20 -0400 Subject: [PATCH] Don't clear SplitId's when updating transaction This caused new splits to be created, instead of re-using existing splits and SplitId's. --- transactions.go | 1 - 1 file changed, 1 deletion(-) diff --git a/transactions.go b/transactions.go index 9aa3a4a..b6d457f 100644 --- a/transactions.go +++ b/transactions.go @@ -580,7 +580,6 @@ func TransactionHandler(w http.ResponseWriter, r *http.Request) { } for i := range transaction.Splits { - transaction.Splits[i].SplitId = -1 _, err := GetAccount(transaction.Splits[i].AccountId, user.UserId) if err != nil { WriteError(w, 3 /*Invalid Request*/)