Fix binding.go panic

This commit is contained in:
Javier Provecho Fernandez 2014-11-11 08:43:48 +01:00
parent 79c66136e0
commit dcad0df8f7

View File

@ -87,7 +87,7 @@ func mapForm(ptr interface{}, form map[string][]string) error {
return err return err
} }
} }
formStruct.Elem().Field(i).Set(slice) formStruct.Field(i).Set(slice)
} else { } else {
if err := setWithProperType(typeField.Type.Kind(), inputValue[0], structField); err != nil { if err := setWithProperType(typeField.Type.Kind(), inputValue[0], structField); err != nil {
return err return err