@ -190,8 +190,11 @@ func updateTypHandler(writer http.ResponseWriter, req *http.Request) {
return
}
var typ Typ
var tid uint64
if req.Form["bezeichnung"] != nil {
typ.Bezeichnung = req.FormValue("bezeichnung")
tid, _ = strconv.ParseUint(req.FormValue("id"), 10, 0)
typ.Id = uint(tid)
} else {
body, err := io.ReadAll(req.Body)