diff --git a/wdm.go b/wdm.go index 59929e5..eaffc31 100644 --- a/wdm.go +++ b/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: ")