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