summaryrefslogtreecommitdiffstats
path: root/templates/mail/issue/default.tmpl
diff options
context:
space:
mode:
authorPrasad Katti <prasadmkatti@gmail.com>2021-09-05 01:06:20 -0700
committerGitHub <noreply@github.com>2021-09-05 09:06:20 +0100
commit4c7a70b348426a66290f2b227693fc32049651b0 (patch)
tree526c06a79d950e1dad7b5c53a8ca2d1a8fd2a9d8 /templates/mail/issue/default.tmpl
parent5a73153493332a110fb9c3ac3f716972f6a2390c (diff)
downloadgitea-4c7a70b348426a66290f2b227693fc32049651b0.tar.gz
gitea-4c7a70b348426a66290f2b227693fc32049651b0.zip
Fix issue with issue default mail template (#16956)
The mail template rendering was failing with the error - `...vices/mailer/mail.go:301:composeIssueCommentMessages() [E] ExecuteTemplate [issue/default/body]: template: issue/default:65:10: executing "issue/default" at <.i18n.Tr>: can't evaluate field i18n in type *models.Comment` The issue was the template variable i18n is available in the outer scope. Fix #16877
Diffstat (limited to 'templates/mail/issue/default.tmpl')
-rw-r--r--templates/mail/issue/default.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl
index 6c74f34c29..0c09c6d043 100644
--- a/templates/mail/issue/default.tmpl
+++ b/templates/mail/issue/default.tmpl
@@ -62,7 +62,7 @@
{{end -}}
{{- range .ReviewComments}}
<hr>
- {{.i18n.Tr "mail.issue.in_tree_path" .TreePath}}
+ {{$.i18n.Tr "mail.issue.in_tree_path" .TreePath}}
<div class="review">
<pre>{{.Patch}}</pre>
<div>{{.RenderedContent | Safe}}</div>