Fix wrongly returned error of ValueBindAny.SetStringValue
This commit is contained in:
parent
94f2eee2db
commit
4839cb7e0a
@ -65,11 +65,12 @@ func (f ValueBindAny) SetStringValue(value string) error {
|
||||
return err
|
||||
}
|
||||
*v = val
|
||||
return nil
|
||||
case encoding.TextUnmarshaler:
|
||||
return v.UnmarshalText([]byte(value))
|
||||
default:
|
||||
return valueBindAnyUnmarshalBasicValue(value, reflect.ValueOf(f.Value))
|
||||
}
|
||||
|
||||
return valueBindAnyUnmarshalBasicValue(value, reflect.ValueOf(f.Value))
|
||||
}
|
||||
|
||||
func (f ValueBindAny) HTMLInputType() string {
|
||||
|
Loading…
Reference in New Issue
Block a user