[BUG] Use correct template for commitmail error

- Use the correct template that was given when there's an error in
retrieving which git identity should be used.
- Remove the error from the exception list.
This commit is contained in:
Gusted 2024-04-02 15:08:53 +02:00
parent 68e900822b
commit 27f39047c1
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 1 additions and 37 deletions

View file

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