summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorEarl Warren <earl-warren@noreply.codeberg.org>2024-04-02 16:45:54 +0200
committerEarl Warren <earl-warren@noreply.codeberg.org>2024-04-02 16:45:54 +0200
commit3aad60864920e52c232dcdd42c2a6fb17e2c520b (patch)
tree5b7aac73a99495748e4315092d1e95fe73555526 /routers
parentMerge pull request '[TESTS] fix flacky git check-attr subtest' (#2963) from o... (diff)
parent[BUG] Use correct template for commitmail error (diff)
downloadforgejo-3aad60864920e52c232dcdd42c2a6fb17e2c520b.tar.xz
forgejo-3aad60864920e52c232dcdd42c2a6fb17e2c520b.zip
Merge pull request '[BUG] Use correct template for commitmail error' (#2973) from gusted/forgejo-fix-committmail into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2973 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go
index ea0c8ddb7e..e8439cb40e 100644
--- a/routers/web/repo/editor.go
+++ b/routers/web/repo/editor.go
@@ -950,7 +950,7 @@ func getGitIdentity(ctx *context.Context, commitMailID int64, tpl base.TplName,
if email == nil || !email.IsActivated {
ctx.Data["Err_CommitMailID"] = true
- ctx.RenderWithErr(ctx.Tr("repo.editor.invalid_commit_mail"), tplEditFile, form)
+ ctx.RenderWithErr(ctx.Tr("repo.editor.invalid_commit_mail"), tpl, form)
return nil
}