Browse Source

argl

pull/1/head
Georg Spar 1 year ago
parent
commit
ad654992c8
  1. 2
      wdm.go

2
wdm.go

@ -554,6 +554,7 @@ func createItemBHandler(writer http.ResponseWriter, req *http.Request) {
itbtyp, _ := strconv.ParseUint(req.FormValue("typid"), 10, 0)
itemB.Type.Id = uint(itbtyp)
itemB.Abmessungen.Id, _ = strconv.ParseUint(req.FormValue("abmessungenid"), 10, 0)
itemB.Frontview.Id, _ = strconv.ParseUint(req.FormValue("frontviewid"), 10, 0)
for formKey, formValue := range req.Form {
log.WithFields(log.Fields{formKey: formValue}).Info("parsing from Form: ")
@ -669,6 +670,7 @@ func updateItemBHandler(writer http.ResponseWriter, req *http.Request) {
itbtyp, _ := strconv.ParseUint(req.FormValue("typid"), 10, 0)
itemB.Type.Id = uint(itbtyp)
itemB.Abmessungen.Id, _ = strconv.ParseUint(req.FormValue("abmessungenid"), 10, 0)
itemB.Frontview.Id, _ = strconv.ParseUint(req.FormValue("frontviewid"), 10, 0)
for formKey, formValue := range req.Form {
log.WithFields(log.Fields{formKey: formValue}).Info("parsing from Form: ")

Loading…
Cancel
Save