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