mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-04 02:23:26 -05:00 
			
		
		
		
	Don't delete splits when updating them
This commit is contained in:
		@@ -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])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user