fix some form bugs

This commit is contained in:
2019-06-04 22:33:56 +02:00
parent 0b8d67a8eb
commit ccd0f82ad3
2 changed files with 7 additions and 9 deletions

View File

@@ -175,7 +175,7 @@ func (wc *WebController) serveForm(
field.EnteredValue = ""
td.Form.Fields[i] = field
}
} else {
} else if td.Form.Submitted {
w.WriteHeader(http.StatusBadRequest)
}