Skip to content

Commit

Permalink
Fix new release from tags list UI (go-gitea#19670)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed May 10, 2022
1 parent f4fb8db commit 09435b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routers/web/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ func NewRelease(ctx *context.Context) {
}

ctx.Data["tag_name"] = rel.TagName
ctx.Data["tag_target"] = rel.Target
if rel.Target != "" {
ctx.Data["tag_target"] = rel.Target
}
ctx.Data["title"] = rel.Title
ctx.Data["content"] = rel.Note
ctx.Data["attachments"] = rel.Attachments
Expand Down

0 comments on commit 09435b2

Please sign in to comment.