Allow modification of a release if Content is empty (fix #2516)

tokarchuk/v1.17
Florian Kaiser 9 years ago
parent 112a7cab31
commit abc5abce30
  1. 2
      modules/auth/repo_form.go

@ -239,7 +239,7 @@ func (f *NewReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) bin
type EditReleaseForm struct { type EditReleaseForm struct {
Title string `form:"title" binding:"Required"` Title string `form:"title" binding:"Required"`
Content string `form:"content" binding:"Required"` Content string `form:"content"`
Draft string `form:"draft"` Draft string `form:"draft"`
Prerelease bool `form:"prerelease"` Prerelease bool `form:"prerelease"`
} }

Loading…
Cancel
Save