fix mapping inner structs with correct tag (#1718)

This commit is contained in:
Dmitry Kutakov
2018-12-28 04:57:09 +03:00
committed by thinkerou
parent 0bfc9cbcdb
commit 49e4b0c60c
2 changed files with 24 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func mapFormByTag(ptr interface{}, form map[string][]string, tag string) error {
structFieldKind = structField.Kind()
}
if structFieldKind == reflect.Struct {
err := mapForm(structField.Addr().Interface(), form)
err := mapFormByTag(structField.Addr().Interface(), form, tag)
if err != nil {
return err
}