mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
not allow to add transaction with hidden transaction tag
This commit is contained in:
@@ -1678,6 +1678,10 @@ func (s *TransactionService) isTagsValid(sess *xorm.Session, transaction *models
|
||||
tagMap := make(map[int64]*models.TransactionTag)
|
||||
|
||||
for i := 0; i < len(tags); i++ {
|
||||
if tags[i].Hidden {
|
||||
return errs.ErrCannotUseHiddenTransactionTag
|
||||
}
|
||||
|
||||
tagMap[tags[i].TagId] = tags[i]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user