From 013db70fce067db78312db3a89c257fc677b87c6 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Wed, 29 Nov 2017 12:52:34 -0800 Subject: Removed unused field in form (#3023) --- modules/auth/repo_form.go | 7 +++---- templates/repo/wiki/new.tmpl | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index bb917a9114..f066fc630f 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -362,10 +362,9 @@ func (f *EditReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) bi // NewWikiForm form for creating wiki type NewWikiForm struct { - OldTitle string - Title string `binding:"Required"` - Content string `binding:"Required"` - Message string + Title string `binding:"Required"` + Content string `binding:"Required"` + Message string } // Validate validates the fields diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index cb928b2830..302e5210ec 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -13,12 +13,11 @@
{{.CsrfTokenHtml}} -
- +
-- cgit v1.2.3