[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:
parent
68e900822b
commit
27f39047c1
2 changed files with 1 additions and 37 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue