mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 15:07:33 +08:00
fix tip not show bug when no item is modified in transaction
This commit is contained in:
@@ -453,6 +453,10 @@ func (a *TransactionsApi) TransactionModifyHandler(c *core.Context) (interface{}
|
||||
|
||||
transactionTagIds := allTransactionTagIds[transaction.TransactionId]
|
||||
|
||||
if transactionTagIds == nil {
|
||||
transactionTagIds = make([]int64, 0, 0)
|
||||
}
|
||||
|
||||
newTransaction := &models.Transaction{
|
||||
TransactionId: transaction.TransactionId,
|
||||
Uid: uid,
|
||||
|
||||
Reference in New Issue
Block a user