From b7daf9330f7835a92a536bf561d4c23175221349 Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Sat, 24 Jun 2023 13:00:57 +0200 Subject: [PATCH] typkonvertierung typ.id --- wdm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wdm.go b/wdm.go index 18fe389..ab37e88 100644 --- a/wdm.go +++ b/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)