Browse Source

typkonvertierung typ.id

pull/1/head
Georg Spar 1 year ago
parent
commit
b7daf9330f
  1. 3
      wdm.go

3
wdm.go

@ -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)

Loading…
Cancel
Save