Browse Source

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>
tags/v1.13.0-rc1
mrsdizzie GitHub 5 years ago
parent
commit
5f5eb8db78
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/mail/issue/default.tmpl

+ 2
- 2
templates/mail/issue/default.tmpl View File

@@ -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}}


Loading…
Cancel
Save