diff options
author | mrsdizzie <info@mrsdizzie.com> | 2020-06-12 04:56:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 11:56:31 +0300 |
commit | 2b573f49cf42cf157b89db3acc1c1dfa0d33cacb (patch) | |
tree | 8d32c652a7b8958d16875e7e2403e6c2dcf64b50 /templates/mail | |
parent | 13fcd04fe43b76a4b80d7c5298d19332d9c8936e (diff) | |
download | gitea-2b573f49cf42cf157b89db3acc1c1dfa0d33cacb.tar.gz gitea-2b573f49cf42cf157b89db3acc1c1dfa0d33cacb.zip |
Fix nil pointer in default issue mail template (#11862)
* Fix nil pointer in default issue mail template
Fix: template: issue/default:20:17: executing "issue/default" at <.Comment.Type>: nil pointer evaluating interface {}.Type
Introduced in #11167
* another one
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/mail')
-rw-r--r-- | templates/mail/issue/default.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index 00bb561d69..e062dca7f1 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -17,7 +17,7 @@ <body> {{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}} - {{if eq .Comment.Type 29}} + {{if eq .ActionName "push"}} <p> <b>{{.Doer.Name}}</b> {{if .Comment.IsForcePush}} @@ -66,7 +66,7 @@ <div>{{.RenderedContent | Safe}}</div> </div> {{end -}} - {{if eq .Comment.Type 29}} + {{if eq .ActionName "push"}} {{ $r:= List .Comment.Commits}} <ul> {{range $r}} |