aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-12 09:10:39 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-12 09:10:39 -0400
commit9961f9a53c4e3be1b224ad618b35c175143a0daa (patch)
treea44972bdc8e7785368d0ab05a1bf947532bdcbca /modules
parent1161c71ac1f6f2030c9e21633aa127c0cbfbdccb (diff)
downloadgitea-9961f9a53c4e3be1b224ad618b35c175143a0daa.tar.gz
gitea-9961f9a53c4e3be1b224ad618b35c175143a0daa.zip
Fix #197
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go
index 82cd078613..26ab7551ca 100644
--- a/modules/auth/repo.go
+++ b/modules/auth/repo.go
@@ -205,6 +205,7 @@ func (f *CreateLabelForm) Validate(errors *binding.Errors, req *http.Request, co
type NewReleaseForm struct {
TagName string `form:"tag_name" binding:"Required"`
+ Target string `form:"tag_target" binding:"Required"`
Title string `form:"title" binding:"Required"`
Content string `form:"content" binding:"Required"`
Prerelease bool `form:"prerelease"`
@@ -213,6 +214,7 @@ type NewReleaseForm struct {
func (f *NewReleaseForm) Name(field string) string {
names := map[string]string{
"TagName": "Tag name",
+ "Target": "Target",
"Title": "Release title",
"Content": "Release content",
}