mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	Don't clear SplitId's when updating transaction
This caused new splits to be created, instead of re-using existing splits and SplitId's.
This commit is contained in:
		@@ -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*/)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user