Merge branch 'hot-fix/1.0.0' into 'test'
fix(tag): Only if tag info is all same than without edit. See merge request opensource/answer!378
This commit is contained in:
@@ -661,7 +661,9 @@ func (ts *TagCommonService) UpdateTag(ctx context.Context, req *schema.UpdateTag
|
||||
return errors.BadRequest(reason.TagNotFound)
|
||||
}
|
||||
//If the content is the same, ignore it
|
||||
if tagInfo.OriginalText == req.OriginalText {
|
||||
if tagInfo.OriginalText == req.OriginalText &&
|
||||
tagInfo.DisplayName == req.DisplayName &&
|
||||
tagInfo.SlugName == req.SlugName {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user