aboutsummaryrefslogtreecommitdiffstats
path: root/services/forms/repo_branch_form.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/forms/repo_branch_form.go')
-rw-r--r--services/forms/repo_branch_form.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go
index bf1183fc43..5deb0ae463 100644
--- a/services/forms/repo_branch_form.go
+++ b/services/forms/repo_branch_form.go
@@ -21,7 +21,7 @@ type NewBranchForm struct {
// Validate validates the fields
func (f *NewBranchForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
- ctx := context.GetContext(req)
+ ctx := context.GetValidateContext(req)
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -33,6 +33,6 @@ type RenameBranchForm struct {
// Validate validates the fields
func (f *RenameBranchForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
- ctx := context.GetContext(req)
+ ctx := context.GetValidateContext(req)
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}