fix bug for nil interface

This commit is contained in:
thinkerou 2017-10-24 21:38:42 +08:00
parent 13042dfd4e
commit b4d1b55cc2

View File

@ -50,7 +50,7 @@ func mapForm(ptr interface{}, form map[string][]string) error {
inputValue, exists := form[inputFieldName]
if !exists {
if defaultValue.(string) == "" {
if defaultValue == nil {
continue
}
inputValue = make([]string, 1)